PHP加速插件-opcache参数详解

zend_extension=opcache.so    #这样去加扩展

opcache.memory_consumption=128      #为opcache分配多少共享内存128M

opcache.interned_strings_buffer=8   #interned string的内存大小

opcache.max_accelerated_files=4000  #最大缓存的文件数目

opcache.revalidate_freq=300         #opcache自动检测文件是否更新的周期,单位秒

opcache.fast_shutdown=1             ##如果启用,快速关闭序列用于加速代码

opcache.enable_cli=1                #是否在CLI(即命令行时)启用opcache   1启用

; Determines if Zend OPCache is enabled

;opcache.enable=0     #是否启用opcache  1启用

; Determines if Zend OPCache is enabled for the CLI version of PHP

;opcache.enable_cli=0    #是否在CLI(即命令行时)启用opcache   1启用

; The OPcache shared memory storage size.

;opcache.memory_consumption=64    #为opcache分配多少共享内存,单位M

; The amount of memory for interned strings in Mbytes.

;opcache.interned_strings_buffer=4    #interned string的内存大小

; The maximum number of keys (scripts) in the OPcache hash table.

; Only numbers between 200 and 100000 are allowed.

;opcache.max_accelerated_files=2000    #最大缓存的文件数目。实际上这个值会使用第一个大于你配置的数字的下列素数{ 223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987 },如你将该值指定为400,则实际上该值为463.

; The maximum percentage of "wasted" memory until a restart is scheduled.

;opcache.max_wasted_percentage=5    #

; When this directive is enabled, the OPcache appends the current working

; directory to the script key, thus eliminating possible collisions between

; files with the same name (basename). Disabling the directive improves

; performance, but may break existing applications.

;opcache.use_cwd=1    #如果置为1,则将当前路径加入到文件key中,以避免可能产生的同文件名的文件key冲突

; When disabled, you must reset the OPcache manually or restart the

; webserver for changes to the filesystem to take effect.

;opcache.validate_timestamps=1    #如果置为1,则OPCACHE会自动检测文件的时间戳(检测周期为revalidate_freq),并根据文件的时间戳来更新opcode,如果置为0,则只能手动去重启opcache或重启webserver以使更新后的php文件生效

; How often (in seconds) to check file timestamps for changes to the shared

; memory storage allocation. ("1" means validate once per second, but only

; once per request. "0" means always validate)

;opcache.revalidate_freq=2   #opcache自动检测文件是否更新的周期,单位秒。如果是0,则每次请求时opcache都要进行检测。当validate_timestamps为0时,本指令无效。

; Enables or disables file search in include_path optimization

;opcache.revalidate_path=0    #

; If disabled, all PHPDoc comments are dropped from the code to reduce the

; size of the optimized code.

;opcache.save_comments=1    #是否禁用文件中的注释

; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"

; may be always stored (save_comments=1), but not loaded by applications

; that don‘t need them anyway.

;opcache.load_comments=1    #如果禁用,注释不会被加载,就是不禁用,注释也不会被应用程序加载

; If enabled, a fast shutdown sequence is used for the accelerated code

;opcache.fast_shutdown=0     #如果启用,快速关闭序列用于加速代码

; Allow file existence override (file_exists, etc.) performance feature.

;opcache.enable_file_override=0   #允许文件存在覆盖(file_exists等)性能特性。

; A bitmask, where each bit enables or disables the appropriate OPcache

; passes

;opcache.optimization_level=0xffffffff    #位掩码,每一位启用或禁用相应的OPcache

;opcache.inherited_hack=1

;opcache.dups_fix=0       #为解决“cannot redecllare class" 时,可将其置为1

; The location of the OPcache blacklist file (wildcards allowed).

; Each OPcache blacklist file is a text file that holds the names of files

; that should not be accelerated. The file format is to add each filename

; to a new line. The filename may be a full path or just a file prefix

; (i.e., /var/www/x  blacklists all the files and directories in /var/www

; that start with ‘x‘). Line starting with a ; are ignored (comments).

;opcache.blacklist_filename=     #黑名单文件设置

; Allows exclusion of large files from being cached. By default all files

; are cached.

;opcache.max_file_size=0   #允许排除大文件缓存。在默认情况下所有文件缓存。

; Check the cache checksum each N requests.

; The default value of "0" means that the checks are disabled.

;opcache.consistency_checks=0    #每N个请求检查缓存校验,默认值“0”意味着检查禁用。开启检查有损性能,所以仅在调试时开启

; How long to wait (in seconds) for a scheduled restart to begin if the cache

; is not being accessed.

;opcache.force_restart_timeout=180    #缓存中没有被访问多长时间(以秒为单位)调度重启。

; OPcache error_log file name. Empty string assumes "stderr".

;opcache.error_log=    #留空表示标准错误输出

; All OPcache errors go to the Web server log.

; By default, only fatal errors (level 0) or errors (level 1) are logged.

; You can also enable warnings (level 2), info messages (level 3) or

; debug messages (level 4).

;opcache.log_verbosity_level=1   #所有OPcache错误导向Web服务器日志。默认情况下,只有致命错误(0级)或错误(1级)被记录。你也可以启用警告(要求等级2),信息消息(3级)或调试消息(四级)。

; Preferred Shared Memory back-end. Leave empty and let the system decide.

;opcache.preferred_memory_model=    #首选的共享内存的后端。留空,让系统决定。

; Protect the shared memory from unexpected writing during script execution.

; Useful for internal debugging only.

;opcache.protect_memory=0    #在脚本执行期间保护的共享内存被意外写入。仅供内部调试。

时间: 2024-08-24 05:00:53

PHP加速插件-opcache参数详解的相关文章

mark---[jQuery Fancybox插件使用参数详解]

天给大家介绍的jquery图片播放插件叫Fancybox,相比LightBox来说,Fancybox相对庞大点,配置也更丰富一些,相信你会喜欢的. 今天给大家介绍的jquery图片播放插件叫Fancybox,相比LightBox来说,Fancybox相对庞大点,配置也更丰富一些,相信你会喜欢的. Fancybox的项目主页地址:http://fancybox.net/ Fancybox的特点如下: 可以支持图片.html文本.flash动画.iframe以及ajax的支持 可以自定义播放器的CS

jQuery Fancybox插件使用参数详解

我是一个搬运工 本文转自http://www.weste.net/2013/4-22/90629.html 先给上Fancybox的项目主页地址:http://fancybox.net/, Fancybox的特点如下: 可以支持图片.html文本.flash动画.iframe以及ajax的支持 可以自定义播放器的CSS样式 可以以组的形式进行播放 如果将鼠标滚动插件(mouse wheel plugin)包含进来的话Fancybox还能支持鼠标滚轮滚动来翻阅图片 Fancybox播放器支持投影,

jquery的uploadify插件多文件上传配置参数详解

最近做了个多文件上传,需要限制上传文件类型的例子.以前没做过找了一些资料,下次有用.同时也给大家做参考. uploader: uploadify.swf 文件的相对路径,该swf文件是一个带有文字BROWSE的按钮,点击后淡出打开文件对话框,默认值:uploadify.swf. script: 后台处理程序的相对路径 .默认值:uploadify.php checkScript:用来判断上传选择的文 件在服务器是否存在的后台处理程序的相对路径 fileDataName:设置一个名字,在服务器处理

jquery.cycle.js图片切换插件参数详解

jquery.cycle.js是jquery的一个插件,主要用来实现千奇百怪的图片切换效果---当然,不是图片也能切换,只是它经常被用来做图片切换而已:这个插件总共有27种效果,是非常好的插件,用到手机版开发是很好的插件来的: 当然jquery.cycle.js的强大远不止于此,下面列举一些它的基本参数: fx:'fade'>值:字符串,作用:选择特效.切换效果是它的重头戏,我统计过,jquery.cycle.js支持27种切换效果,我一一进行了测试,列举在jquery.cycle.js切换特效

jQuery上传插件Uploadify使用详解(转发原作者冯威)

jQuery上传插件Uploadify使用详解 本文Uploadify版本为2.1.0,已经过时,截止(2016-09-25)最新版本3.2.1的详细介绍请移步<jQuery上传插件Uploadify使用详解(3.2.1)> Uploadify是jQuery的一个上传插件,实现的效果非常不错,带进度显示.不过官方提供的实例时php版本的,本文将详细介绍Uploadify在Aspnet中的使用,您也可以点击下面的链接进行演示或下载. 官方下载 官方文档 官方演示 首先按下面的步骤来实现一个简单的

jQuery datepicker参数 详解

DatePicker支持鼠标点选日期,同时还可以通过键盘控制选择: page up/down - 上一月.下一月 ctrl+page up/down - 上一年.下一年 ctrl+home - 当前月或最后一次打开的日期 ctrl+left/right - 上一天.下一天 ctrl+up/down - 上一周.下一周 enter - 确定选择日期 ctrl+end - 关闭并清除已选择的日期 escape - 关闭并取消选择 实用功能: $.datepicker.setDefaults( set

谷歌搜索参数url参数详解

谷歌搜索表单参数url参数详解 q(Query):查询的关键词,搜索查询q是必需的URL参数之一,其他都是可选的. 当q的值包含多个单词时,用加号分隔每个单词.(text) hl(Interface Language):Google搜索的界面语言hl=zh-CN简体中文语言界面,我们用的Google中文就是这个参数.hl=zh-TW繁体中文语言界面,港台地区常使用hl=en-英文语言界面 lr(Language Restrict):搜索内容的语言限定限定只搜索某种语言的网页.如果lr参数为空,则

jQuery插件制作方法详解

jQuery插件制作方法详解 jquery插件给我的感觉清一色的清洁,简单.如Jtip,要使用它的功能,只需要在你的元素的class上加 上Jtip,并引入jtip.js及其样式即可以了.其他事情插件全包.我喜欢jquery的一个重要原因是发现她已经有了很多很好,很精彩的插件.写一 个自己的jQuery插件是非常容易的,如果你按照下面的原则来做,可以让其他人也容易地结合使用你的插件. jquery插件给我的感觉清一色的清洁,简单.如Jtip,要使用它的功能,只需要在你的元素的class上加上Jt

VLC命令行参数详解

VLC命令行参数详解 2012-11-29 14:00 6859人阅读 评论(0) 收藏 举报 Usage: vlc [options] [stream] ...You can specify multiple streams on the commandline. They will be enqueued in the playlist.The first item specified will be played first. Options-styles:  --option  A gl