页面导航: 首页网络编程PHP编程php实例 → 正文内容

用windows下编译过的eAccelerator for PHP 5.1.6实现php加速的使用方法

发布:dxy 字体:[增加 减小] 类型:转载
官方地址:http://www.arnot.info/eaccelerator/
选择下载对应您的系统和PHP版本的eAccelerator
2.将其重命名为 eaccelerator.dll (win版) 然后移至您的 php目录下 的 ext文件夹中
3.在c:\php\建立缓存文件夹 temp 修改权限为 user组可读写
3.根据您系统的情况,一般都是PHP 扩展 ISAPI
打开php.ini文件, 找到extension=php_zip.dll, 在下面添加
zend_extension_ts="C:\php\ext\eaccelerator.dll"     //路径根据您系统的情况而定,文件扩展名也是
eaccelerator.shm_size="64"     //根据你的系统内存来,默认16M,可以改成64M
eaccelerator.cache_dir="C:\php\temp"   //手动创建,例如C:\php\temp,确保他的权限为可读写,并且以后不要动这个目录
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"
把修改好的 php.ini 放入你的php配置目录 2003好像是 c:\windows\
┌──────┐
│判断加速启动│
└──────┘
重起iis之前,的php信息 只显示zend......
加载eaccelerator.dll之后 php信息显示 zend.......with eAccelerator 说明加载成功
浏览次数:载入中... 打印本文关闭本文返回首页

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行