PHP5.5整合了zend opcache,但是5.4以下的需要自己安装。

介绍一下开启opcache方法,环境为wamp(php5.4.16)

  • 下载dll文件
  • 把php_opcache.dll放进php/ext目录
  • 配置php.ini
zend_extension = "c:/wamp/bin/php/php5.4.16/ext/php_opcache.dll"
extension = php_opcache.dll

opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

 

重启Apache

相关文章:

  • 2021-07-31
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-09-20
  • 2021-10-05
  • 2022-12-23
  • 2021-06-12
  • 2021-12-08
相关资源
相似解决方案