centos 7.6 没有安装opcache php代码也要重启才生效

问答中心分类: Linuxcentos 7.6 没有安装opcache php代码也要重启才生效
medreams asked 5 年 ago

centos 7.6  php7.2 没有安装opcache php代码也要重启才生效,是系统问题吗?

3 Answers
oneinstack answered 5 年 ago
确认执行 php -v 不显示OPcache ?

medreams answered 5 年 ago
php -v
PHP 7.3.0 (cli) (built: Dec 14 2018 14:28:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
php -v 输出的内容

medreams answered 5 年 ago
 
[opcache]                                                                  ; 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
php.ini里面的内容,我换到centos 6.10还是一样,我换成php 7.2也一样。php.d/下面也没有opcache 的配置