编译安装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
- ;...
复制代码 免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |