编译安装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;...