Nginx出现upstream prematurely closed connection while reading response header from upstream错误

今日突然之间PHP的环境不好使了,打开什么页面都是502错误,查看日志错误如下:

2015/05/19 10:29:39 [error] 1616#3708: *7 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"</div>

应该是看起来应该是PHP处理出现问题了

那么查看一下PHP的9000端口 看看是否有进程在占用
1.在运行中输入cmd打开dos命令窗口,比如我想找到端口9000对应的PID(通过PID找到相应的进程)
键入命令:netstat -ano|findstr 9000

2.根据PID找到对应的进程,打开任务管理器-点击查看选项-选择(选择列)

这样就会在任务管理器上看到PID的值
 
3.找到对应的PID关闭进程,关闭PID为1944的进程

查出来之后竟然是Eclipse占用了 为何占用 挺疑惑的。。。

0条留言