您好,欢迎访问一九零五行业门户网

windows中PHP 5.2.17 安装 eAccelerator方法_PHP教程

eaccelerator是一个开源php加速器,优化和动态内容缓存,提高了php脚本的缓存性能,使得php脚本在编译的状态下,对服务器的开销几乎完全消除,下面我来给各位同学介绍php 5.2.17 安装 eaccelerator方法
本包里有非线程安全与线程安全版本。eaccelerator_ts.dll 是线程安全版本,eaccelerator_nts.dll 是非线程安全版本。该eaccelerator使用最新发布的php 5.2.17编译,使用前请确认自己的php版本。文件内含thread safe(线程安全)和non thread safe(非线程安全版本),请根据自己使用的php版本选择。
一、相关下载
eaccelerator 0.9.6.1 for php5.2.17(dll)
二、安装方法
1、选择相应版本
根据您的php线程安全版本,选择相应文件,并复制到php目录下的子目录ext中,同时改名为php_eaccelerator.dll。
2、设置相应参数
[eaccelerator]
zend_extension_ts=d:/php5/ext/php_eaccelerator.dll
eaccelerator.shm_size=64
eaccelerator.cache_dir=d:/php5/tmp
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.keys = shm
eaccelerator.sessions = shm
eaccelerator.content = shm
请编辑c:windowsphp.ini文件(根据实际情况),复制以上参数到php.ini最底部,并修改以下路径。
zend_extension_ts=d:/php5/ext/php_eaccelerator.dll  #您的php路径
eaccelerator.cache_dir=d:/php5/tmp         #您的php临时文件路径(要有user可读写权限)
3、保存,重启iis
在cmd中执行:iisreset,重启iis,并使用phpinfo查看,如果提示如下图,表示安装成功。
http://www.bkjia.com/phpjc/629827.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/629827.htmltecharticleeaccelerator是一个开源php加速器,优化和动态内容缓存,提高了php脚本的缓存性能,使得php脚本在编译的状态下,对服务器的开销几乎完全消...
其它类似信息

推荐信息