# 安装phpize yum install php-devel make # 下载eaccelerator, 也可以从 http://sourceforge.net/projects/eaccelerator/files/eaccelerator/ 下载 wget http://soft.vpser.net/web/eaccelerator/eaccelerator-0.9.6.1.zip unzip eaccelerator-0.9.6.1.zip cd eaccelerator-0.9.6.1 phpize ./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config make make install vi /etc/php.ini # 在结尾加入 zend_extension=”/usr/lib/php/modules/eaccelerator.so” eaccelerator.shm_size=”16″ eaccelerator.cache_dir=”/tmp/eaccelerator” eaccelerator.enable=”1″ eaccelerator.optimizer=”1″ eaccelerator.check_mtime=”1″ eaccelerator.debug=”0″ 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缓存目录: mkdir /tmp/eaccelerator chmod 0777 /tmp/eaccelerator 重启 php-fastcgi(如果有的话) php-fastcgi:/etc/init.d/php-fastcgi restart 重启web . . . → Read More: linux install php eaccelerator
最新评论