Home  >  Article  >  php教程  >  Opcache导致php-fpm崩溃nginx返回502,php-fpmnginx

Opcache导致php-fpm崩溃nginx返回502,php-fpmnginx

WBOY
WBOYOriginal
2016-06-13 09:13:411528browse

Opcache导致php-fpm崩溃nginx返回502,php-fpmnginx

我这个博客为了提高运行效率在vps上装了opcache扩展,结果发现有个页面返回502,其他页面正常。

检查了php-fpm日志,发现是php-fpm子进程不知道为什么会崩溃,然后把opcache关了就正常。中间折腾的过程就不提了,总之最后发现应该是和另外一个扩展 zend guard冲突导致的,搞笑的是,只要我把php.ini中[zend guard] 配置段放在[zend opcache]后面就正常了。

不想继续深究了,如果你对php底层熟悉,可以为我解惑。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn