Nginx报错 connect() failed (111: Connection refused) while connecting to upstream 的解决方法,nginxupstream
今天访问公司的网站突然报错,抛出一些英文,提示看一下Nginx的error.log日志:
cd /usr/local/nginx/logs/ 看到了error.log ,下一步 tail -n 20 error.log 看到了报错的内容: connect() failed (111: Connection refused) while connecting to upstream
从英文可以看出连接PHP进程管理器失败,于是看了一下PHP进程管理器的状态,service php-fpm status ,看到是close的状态,于是 执行service php-fpm start ,一切就OK了。
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