Solve the problems encountered in nginx configuration php

不言
Release: 2023-03-24 19:38:01
Original
1749 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!