2016-02-15 107 views
1

我突然得到502錯誤的網關錯誤,我不明白爲什麼會出現此錯誤。這個錯誤而且只出現1單頁!! ...上游過早關閉FastCGI stdout,同時讀取來自上游的響應標頭

在我的Nginx的日誌確切的錯誤是:

Upstream prematurely closed FastCGI stdout while reading response header from upstream [..] upstream: "fastcgi://unix:/var/run/php5-fpm.sock:" 

我想:

  • 服務nginx的啓動:NOTHING CHANGE
  • 服務php5-fpm重啓:沒有更改
  • 重啓服務器:沒有更改
  • 前夕N到重新啓動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 

這讓我瘋狂,任何想法?

+0

這一解決方案的任何?它發生在我身上,沒有任何改變。 –

回答

0

我做了以下服務器nginx的配置:

client_body_timeout 1200; 
    client_header_timeout 600; 

,並添加的zend_extension到PHP FPM的php.ini:

zend_extension = xdebug.so 
相關問題