作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经从 GitHub 安装了 OPCache GUI并安装在我的 Mac 上。但是当我运行页面时,它显示
The Zend OPcache extension is installed but not turned on
opcache.enable=1
opcache.enable_cli=1
zend_extension=opcache.so
opcache.memory_consumption=128
opcache.max_accelerated_files=2500
opcache.interned_strings_buffer=8
opcache.revalidate_freq=60
opcache.fast_shutdown=1
zend_extension=/path/to/opcache.so/file
最佳答案
我发现无论你在 php.ini
中设置了什么缓存始终显示为禁用。唯一有效的方法是激活 OPcache
直接在 MAMP GUI 中。
您在何处找到这些设置取决于 MAMP 变体(标准版或专业版):
MAMP专业版
Language → PHP Settings → Cache module to speed up PHP execution →
OPcache
Settings → General → Cache →
OPcache
关于php - 如何在 MAC Sierra (MAMP) 上为 PHP7.1 启用 OPCache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42724120/
我是一名优秀的程序员,十分优秀!