Home >Backend Development >PHP Tutorial >Solution to Nginx error connect() failed (111: Connection refused) while connecting to upstream, nginxupstream_PHP tutorial

Solution to Nginx error connect() failed (111: Connection refused) while connecting to upstream, nginxupstream_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:02:092755browse

Nginx error report connect() failed (111: Connection refused) while connecting to upstream solution, nginxupstream

When I visited the company’s website today, it suddenly reported an error, throwing out some English prompts Take a look at Nginx’s error.log:

cd /usr/local/nginx/logs/ and see the error.log. Next, tail -n 20 error.log and see the error content: connect() failed (111: Connection refused) while connecting to upstream

It can be seen from English that the connection to the PHP process manager failed, so I looked at the status of the PHP process manager, service php-fpm status, and saw that it was in the close status, so I executed service php-fpm start and everything was OK. .

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1086210.htmlTechArticleNginx error report connect() failed (111: Connection refused) while connecting to upstream solution, nginxupstream Visit the company today The website suddenly reported an error, throwing out some English, mention...
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