继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Linux PHP缓存加速器安装

慕妹3242003
关注TA
已关注
手记 216
粉丝 9
获赞 25

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

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

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP