php opcache变量未正确设置 [英] php opcache variables not set correctly

查看:254
本文介绍了php opcache变量未正确设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将变量设置为在我的php.ini文件中设置opcahe. phpinfo说:

I'm trying to set the variables to setup opcahe in my php.ini file. phpinfo says:

Configuration File (php.ini) 
Path    /etc/php/7.0/fpm
Loaded Configuration File   /etc/php/7.0/fpm/php.ini 
Scan this dir for additional .ini files   /etc/php/7.0/fpm/conf.d 
Additional .ini files parsed    /etc/php/7.0/fpm/conf.d/10-mysqlnd.ini,

/etc/php/7.0/fpm/conf.d/10-opcache.ini,

/etc/php/7.0/fpm/conf.d/10-opcache.ini,

/etc/php/7.0/fpm/conf.d/10-pdo.ini,
/etc/php/7.0/fpm/conf.d/15-xml.ini,
...

/etc/php/7.0/fpm/conf.d/10-opcache.ini包含:

And /etc/php/7.0/fpm/conf.d/10-opcache.ini, contains:

zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.fast_shutdown=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
opcache.file_cache=/tmp;

当我查看phpinfo的opcache结果时,我看到:

When I look in phpinfo results for opcache, I see:

opcache.enable  On  On
opcache.enable_cli  Off Off
opcache.max_accelerated_files   2000    2000
opcache.interned_strings_buffer 4   4
opcache.memory_consumption  64  64
opcache.revalidate_freq 2   2

有人知道为什么它不带我的变量吗?

Does anyone know why it does not take my variables???

推荐答案

已解决,但我真的不知道如何解决. 我只是(重新)安装了php7-intl和php7-sqlite3来解决其他问题,然后有关opcache的错误消息消失了

Solved but I don't really know how. I just (re)installed php7-intl and php7-sqlite3 for other problems then the error messages concerning opcache disappeared

这篇关于php opcache变量未正确设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆