git:https://github.com/laruence/yar
先克隆 如果沒有 git 需要先安裝
yum install git
然后 克隆
git clone https://github.com/laruence/yar.git
然后 進入yar 目錄
cd yar
開始編譯安裝
phpize ./configure --with-php-config=/usr/bin/php-config make && make install
然后把擴展添加到 php配置文件中
cd /etc/php.d
vim yar.ini
寫入:
extension=yar.so
保存退出。
重啟php nginx