码迷,mamicode.com
首页 > Web开发 > 详细

php 加速器eaccelerator-0.9.6.1 安装及配置

时间:2015-10-20 19:50:31      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:加速器   shared   local   

tar jxf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1/
mkdir -p /usr/local/eaccelerator_cache
/usr/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
make
make install

echo ‘[eaccelerator]‘ >> /etc/php.ini
echo ‘zend_extension="/usr/lib64/php/modules/eaccelerator.so"‘ >> /etc/php.ini
echo ‘eaccelerator.shm_size="1024"‘ >> /etc/php.ini
echo ‘eaccelerator.cache_dir="/usr/local/eaccelerator_cache"‘ >> /etc/php.ini
echo ‘eaccelerator.enable="1"‘ >> /etc/php.ini
echo ‘eaccelerator.optimizer="1"‘ >> /etc/php.ini
echo ‘eaccelerator.check_mtime="1"‘ >> /etc/php.ini
echo ‘eaccelerator.debug="0"‘ >> /etc/php.ini
echo ‘eaccelerator.filter=""‘ >> /etc/php.ini
echo ‘eaccelerator.shm_max="0"‘ >> /etc/php.ini
echo ‘eaccelerator.shm_ttl="3600"‘ >> /etc/php.ini
echo ‘eaccelerator.shm_prune_period="3600"‘ >> /etc/php.ini
echo ‘eaccelerator.shm_only="0"‘ >> /etc/php.ini
echo ‘eaccelerator.compress="1"‘ >> /etc/php.ini
echo ‘eaccelerator.compress_level="9"‘ >> /etc/php.ini


php 加速器eaccelerator-0.9.6.1 安装及配置

标签:加速器   shared   local   

原文地址:http://wks97.blog.51cto.com/2139464/1704482

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!