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"