Home  >  Article  >  Backend Development  >  nginx报 502 Bad Gateway

nginx报 502 Bad Gateway

WBOY
WBOYOriginal
2016-06-06 20:08:361060browse

就是简单的部署lamp
系统CentOS 6.5 64位,安装好php-fpm,ip访问就报502错误。
尝试了网上很多效果,都没有用,没有方向怎么去解决这个问题。

以下是php-fpm.log

nginx报 502 Bad Gateway
查看php-fpm是否启动

nginx报 502 Bad Gateway
查看9000端口

nginx报 502 Bad Gateway

回复内容:

就是简单的部署lamp
系统CentOS 6.5 64位,安装好php-fpm,ip访问就报502错误。
尝试了网上很多效果,都没有用,没有方向怎么去解决这个问题。

以下是php-fpm.log

nginx报 502 Bad Gateway
查看php-fpm是否启动

nginx报 502 Bad Gateway
查看9000端口

nginx报 502 Bad Gateway

首先你确认进程中php-fpm跑起来了?

<code>ps aux| grep php-fpm
</code>

如果没有跑起来,那么看你的日志你要排查9000端口是被什么程序占用了

<code>netstat -apn | grep 9000</code>
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