cd /usr/local/src/
wget -c
tar zxvf yar-1.2.0.tgz
cd yar-1.2.0
phpize
./configure
make && make install
cp /usr/local/php5/etc/php.ini /usr/local/php5/etc/php.ini.bak
vim /usr/local/php5/etc/php.ini
extension="yar.so"
service php-fpm reload
阅读(1313) | 评论(0) | 转发(0) |