eAccelerator

什么是eAccelerator?
----------------------
eAccelerator是一个的免费、开源的PHP模块,它能够为提供PHP加速、优化、加码、和动态内容缓存功能。它通过存储PH脚本编译后的状态而加快执行PHP脚本的速度,而不需要频繁的编译这个PHP脚本。而且它能优化PHP脚本,以提高执行PHP的速度。eAccelerator特色是减少了服务器负载、使PHP脚本加速1-10倍。

配置选项
--------

eaccelerator.shm_size
eAccelerator使用共享内存的总数。单位是MB.
设置为“0”,则为操作系统默认值。默认为“0”

eaccelerator.cache_dir
硬盘缓存的目录。eAccelerator存储预编译代码,session数据,内容数据(content)和使用的入口(entres??)。这些数据也能够存储在共享内存里(为了得到更快的通道)。默认为“/tmp/eaccelerator”。

yayu:建立这个空目录后,在有人访问php页面后会自动建立二级二维目录(0,1.....e,f)(16进制,晕)

eaccelerator.enable
决定eAccelerator是否有效。“1”为有效,“0”为无效。默认为“1”

eaccelerator.optimizer
是否使用内置的优化工具加速代码的执行。“1”为是,“0”为否。默认为“1”

eaccelerator.debug
是否记录eAccelerator debug log。“1”为是,“0”为否。默认为“0”

eaccelerator.check_mtime
是否检查php程序更新时间。“1”为是,“0”为否。如果你想改变php程序后重编译程序到共享内存,那就应该设置为“1”。默认为“1”

eaccelerator.filter
决定哪些php文件被缓存。你可能需要指定哪些文件(如:"*.php *.phtml")需要被缓存。如果在文件前加上“!”,那么符合条件的文件将被忽略。默认为"",这以为着所有php文件都会被缓存。

eaccelerator.shm_max
设置诸如“eaccelerator_put()”之类的函数能往共享内存里面加载数据的大小。单位为MB。“0”为不限制,默认为“0”。

eaccelerator.shm_ttl
当共享内存空间已满,将删除在“shm_ttl”秒前没有使用的程序。默认为0,为不删除任何文件。

eaccelerator.shm_prune_period
共享内存已满。前一次操作是在shm_prune_period秒之前,那么这一次将删除所有的旧程序。默认为“0”,意为不删除任何程序。

eaccelerator.shm_only
是否把编译后程序缓存到硬盘上。这个选项对session数据和内容(content)缓存无效。默认为“0”,意为同时使用共享内存和硬盘做缓存。

eaccelerator.compress
是否对缓存内容做压缩。默认为“1”,为不压缩。

eaccelerator.compress_level
压缩的级别,默认和最高都为“9”。

eaccelerator.name_space
一个对所有键值假拟的字符串。通过在.htaccess文件中设置的这个值,允许两个应用使用相同的键值运行在同一个主机上。

yayu:命名空间?

eaccelerator.keys
eaccelerator.sessions
eaccelerator.content
决定那些键,session数据和内容将被缓存,这些可能的值是:

"shm_and_disk" - 缓存数据在共享内存和硬盘上(默认值)
"shm"          - 缓存数据在共享内存,如果共享内存已满或者提交的数据大小超过eaccelerator.shm_max,则存储在硬盘上。
"shm_only"     - 只缓存数据在共享内存
"disk_only"    - 只缓存数据在硬盘
"none"         - 不缓存数据

eaccelerator.allowed_admin_path
允许得到管理信息和管理操作的脚本路径。

参考资料

老李安装CentOS编译环境和eAccelerator
http://blog.sina.com.cn/s/blog_4560b80b0100mepy.html

PHP加速器eAccelerator文档翻译
http://www.yayu.org/look.php?id=100

eAccelerator 0.9.5.2 安装
http://www.yayu.org/look.php?id=115

eAccelerator 的加速效果
http://hi.baidu.com/oscommerce_cn/blog/item/ccbef9184485d40434fa4128.html

给PHP加速,eAccelerator配置和使用指南
http://www.toplee.com/blog/100.html

重装编译一下eaccelerator遇到wrong ELF class: ELFCLASS32
http://liujj.alltosun.net/201008/ea_wrongelfclass

eAccelerator配置详解
http://www.opsers.org/2010_05_1057.html

CentOS 5.3 64位安装 php-eAccelerator
http://bbs.phpchina.com/archiver/tid-166725.html

empty list with eaccelerator_list_keys
http://eaccelerator.net/ticket/203


http://eaccelerator.net/query?version=0.9.5&milestone=0.9.6&desc=1&order=priority&row=description

猜你喜欢

转载自blog.csdn.net/ghj1976/article/details/6162353