Nginx reports 502 BadGateway

Source: Internet
Author: User
It is a simple deployment of the lamp system CentOS6.564-bit. After the php-fpm is installed, the error 502 is reported when the ip address is accessed. I tried a lot of results on the Internet and it was useless. I had no way to solve this problem. The following is a php-fpm.log to see If php-fpm is started to view port 9000

It is a simple deployment of lamp.
CentOS 6.5 64-bit. If php-fpm is installed, the system reports a 502 error when accessing the ip address.
I tried a lot of results on the Internet and it was useless. I had no way to solve this problem.

Below is the php-fpm.log


Check whether php-fpm is started


View port 9000

Reply content:

It is a simple deployment of lamp.
CentOS 6.5 64-bit. If php-fpm is installed, the system reports a 502 error when accessing the ip address.
I tried a lot of results on the Internet and it was useless. I had no way to solve this problem.

Below is the php-fpm.log


Check whether php-fpm is started


View port 9000

First, are you sure php-fpm is running in the process?

Ps aux | grep php-fpm

If the port is not running, check your log to find out which program is occupying port 9000.

Netstat-apn | grep 9000

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.