修改php.ini
vi /usr/local/php5/lib/php.iniextension="eaccelerator.so"
eaccelerator.shm_size="32″
eaccelerator.cache_dir="/var/cache/eaccelerator"
eaccelerator.enable="1″
eaccelerator.optimizer="1″
eaccelerator.check_mtime="1″
eaccelerator.debug="0″
eaccelerator.filter=""
eaccelerator.shm_max="0″
eaccelerator.shm_ttl="3600″
eaccelerator.shm_prune_period="3600″
eaccelerator.shm_only="0″
eaccelerator.compress="1″
eaccelerator.compress_level="9″
eaccelerator.keys = "disk_only"
eaccelerator.session = "disk_only"
eaccelerator.content = "disk_only"
保存
make /var/cache/eacceleratorchmod -R 777 /var/cache/eaccelerator
因为之前安装memcache,已经加了extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/",所以安装eaccelerator就不加这句了,如果实际操作中没装memcache,那就需要在php.ini中加入这句,或者直接指定eaccelerator.so的绝对路径。
重启一下 php-fpm 应该马上生效了。
ShopEx 网上商店系统 v4.8.5.55324下载
界面预览ECShop GBK v2.7.3 Release 1106下载