0
点赞
收藏
分享

微信扫一扫

编译安装php7.4.33正确开启opcache,不只是去掉opcache.enable=1前面的分号

爱做梦的老巫婆 2024-08-16 阅读 26

编译安装php7.4.33正确开启opcache,不只是去掉opcache.enable=1前面的分号

要成功开启
必须增加zend_extension=opcache.so

请看下面的样例:

[opcache]
zend_extension=opcache.so

; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
;opcache.interned_strings_buffer=8

;...
举报
0 条评论