PHP加速器 eAccelerator

eAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. 这个东西就是类似于"zend optimizer"的软件!

2011-07-08 15:00:58

官方网站:http://eaccelerator.net/
现在的最高版本是Release-0.9.6.1 - 2010/05/31


安装方法:
/usr/local/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config
make
make install

这就算好了!
/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613下会多出来一个eaccelerator.so文件


配置方法:
编辑你的php.ini
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/home/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"


shm_size 是内存大小,我的设置是128
cache_dir 是放cache的地方,mkdir 这个文件夹,把权限设定成777

然后重启apache,用phpinfo(),看一下,出现“eAccelerator”了?如果出来了你就是成功了!

徜徉于这片废土的我们.....应当去哪里追寻更好的自己?