Kloxo环境下安装eAccelerator

2012年08月12日

转载自:http://blog.vpswind.com/archive/104.html
eaccelerator-0.9.5.3:http://autosetup1.googlecode.com/files/eaccelerator-0.9.5.3.tar.bz2
eaccelerator-0.9.6.1:http://acelnmp.googlecode.com/files/eaccelerator-0.9.6.1.tar.bz2
在putty中执行以下命令,安装完成后,如果你是apache的就执行service httpd restart命令,如果你是使用lighttpd的,就执行service lighttpd restart命令,重启后可以在putty中执行 php -v 命令来查看.

yum install -y make
wget http://autosetup1.googlecode.com/files/eaccelerator-0.9.5.3.tar.bz2
bzip2 -d   eaccelerator-0.9.5.3.tar.bz2
tar -xvf eaccelerator-0.9.5.3.tar
cd eaccelerator-0.9.5.3
phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config --with-eaccelerator-shared-memory
make
make install

cat >/etc/php.d/eaccelerator.ini< <EOF
extension="eaccelerator.so"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.log_file = "/var/log/eaccelerator_log"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"
EOF
service httpd restart
service lighttpd restart

sicnature ---------------------------------------------------------------------
Your current IP address is: 54.80.81.223
Your IP address location: 国
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 海南仙岛海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://www.myzhenai.com.cn/post/738.html

没有评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注