【发布时间】:2016-05-26 10:00:21
【问题描述】:
我突然收到 502 Bad gateway 错误,我不明白为什么会出现这个错误。此外,此错误仅针对 1 个单页出现!!...
我的 Nginx 日志中的确切错误是:
Upstream prematurely closed FastCGI stdout while reading response header from upstream [..] upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
我试过了:
- 服务 nginx 重启:没有任何变化
- 服务 php5-fpm 重启:没有任何变化
- 重启服务器:NOTHING CHANGE
- 即使重启 mysql 服务:NOTHING CHANGE
我的/var/log/upstart/php5-fpm.log(只有很多通知):
Terminating...
exiting, bye-bye!
fpm is running, pid 9887
ready to handle connections
systemd monitor interval set to 10000ms
这让我发疯了,你知道吗?
【问题讨论】:
-
有什么解决办法吗?它发生在我身上,并没有改变任何东西。
标签: php html mysql logging nginx