美文网首页
PHP配置导致的nginx502问题

PHP配置导致的nginx502问题

作者: Gundy_ | 来源:发表于2017-04-20 11:30 被阅读87次

发现一个奇怪的问题,nginx报错:
*4012 upstream prematurely closed connection while reading response header from upstream
这样的错误应该是php-fpm存在问题,在查看php-fpm的日志发现如下错误:
child 68372 exited on signal 15 (SIGTERM) after 587.884598 seconds from start

首先可以看下php-fpm配置文件中的一些连接数,不过一般默认的都不会出错,最后发现是php.ini里面的 display_errors设置了no导致的问题。 最后打开错误提示解决问题。

相关文章

网友评论

      本文标题:PHP配置导致的nginx502问题

      本文链接:https://www.haomeiwen.com/subject/naakzttx.html