oneinstack 安装的Lnmp 环境,关闭Opcache

前言:因为本人修改了PHP 代码,提交到服务器环境执行,发现代码始终没有更新。并且更奇怪的是要等待一会儿,才会生效更新代码。因此想到可能是opcache 的原因,这种情况就直接关闭opcache 

1, 通过phpinfo()函数,就可得知 opcache.ini 路径:

2, 通过vim opcache 路径,编辑并修改两个值 【opcache.enable = 0,  opcache_cli= 0】:

3,Apache 重启 或者 nginx php-fpm 重启即可生效。

猜你喜欢

转载自blog.csdn.net/m0_37082962/article/details/82114008
今日推荐