challey 发表于 2017-4-28 08:35:04

lnmpa1.3/1.4 安装Opcache后多次出现Cannot load Zend OPcache

如题,ssh登录查看php版本:php -v,出现下面的问题
Cannot load Zend OPcache网站无法启动,用./addons.sh uninstall opcache 卸载Opcahce后,网站才能运行。
lnmpa1.3/1.4 两个环境下都是这样。

军哥,这是何故?
谢指点!

licess 发表于 2017-4-28 11:35:18

发一下具体截图或错误谢谢

challey 发表于 2017-4-28 14:02:43

命令行执行情况如下:

====== Installing zend opcache ======
Press any key to install...or Press Ctrl+c to cancel
Uninstall eAccelerator...
Copy Opcache Control Panel...
Restarting Apache......
restart apache...done
====== Opcache install completed ======
Opcache installed successfully, enjoy it!
# php -v
Cannot load Zend OPcache - it was already loaded
PHP 7.0.7 (cli) (built: Apr 22 2017 22:11:49) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
#


[ 本帖最后由 challey 于 2017-4-28 14:04 编辑 ]

challey 发表于 2017-4-28 14:03:14

回复 2# 的帖子

无法插入图片,命令行执行情况如下:

====== Installing zend opcache ======
Press any key to install...or Press Ctrl+c to cancel
Uninstall eAccelerator...
Copy Opcache Control Panel...
Restarting Apache......
restart apache...  done
====== Opcache install completed ======
Opcache installed successfully, enjoy it!
# php -v
Cannot load Zend OPcache - it was already loaded
PHP 7.0.7 (cli) (built: Apr 22 2017 22:11:49) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
#

[ 本帖最后由 challey 于 2017-4-28 14:04 编辑 ]

licess 发表于 2017-4-28 17:53:08

opcache加载了两次,你可以看一下php.ini 中是否有多个opcache.so
页: [1]
查看完整版本: lnmpa1.3/1.4 安装Opcache后多次出现Cannot load Zend OPcache