Home  >  Article  >  Backend Development  >  Solve the problems encountered in nginx configuration php

Solve the problems encountered in nginx configuration php

不言
不言Original
2018-04-24 16:29:521747browse

This article mainly introduces the solutions to the problems encountered when configuring PHP with nginx. It has certain reference value. Now I share it with you. Friends in need can refer to it.

There is no problem when building on the local machine The problem persists after copying the nginx configuration to another host.


1.nginx error

*13776 connect() failed (111: Connection refused) while connecting to upstream, client: 122.114.199.248

At this time, check that the Alibaba Cloud configuration and firewall are normal.

At this time, I found that the connection cannot be connected using telnet.

View port monitoring status

ss -nat

LISTEN 0 128 128              127.0.0.1:9000

php-fpm only listens to 127.0. 0.1


Refer to https://www.cnblogs.com/jonsea/p/5522018.html to configure php-fpm, and it will be normal after restarting.

The above is the detailed content of Solve the problems encountered in nginx configuration php. For more information, please follow other related articles on the PHP Chinese website!

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