越简单越好!

freebsd8.0下安装eaccelerator

发表于 2010-06-26 13:41 | 1235次阅读 0次点赞   PHP

cd /usr/ports/www/eaccelerator
make install clean

vi /usr/local/etc/php/extension.ini
加上 extension=eaccelerator.so

vi /usr/local/etc/php.ini
在文件最末添加:
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
accelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

各参数功能参考: http://eaccelerator.net/wiki/Settings

返回顶部 ^