connect() failed (111: Connection refused) while connecting to upstream报错处理

Posted godfather007

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了connect() failed (111: Connection refused) while connecting to upstream报错处理相关的知识,希望对你有一定的参考价值。

新lnmp环境调试项目时,nginx报错如下:

技术图片

解决:

发现php-fpm.conf是以套接字方式通信,而nginx是以端口方式通信,见下图:

技术图片

技术图片

将nginx.conf修改为如下,重新reload即可

 技术图片

 

以上是关于connect() failed (111: Connection refused) while connecting to upstream报错处理的主要内容,如果未能解决你的问题,请参考以下文章

nginx和php-fpm配置 错误connect() failed (111: Connection refused) while connecting to upstream connect()

connect() failed (111: Connection refused) while connecting to upstream, cli

Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused

nginx 报错 connect() failed (111: Connection refused) while connecting to upstream

nginx:连接到上游时连接()失败(111:连接被拒绝)

遇到问题--scala-gradle--Connect to jcenter.bintray.com:443 [jcenter.bintray.com/34.95.74.180] failed: co