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

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

解决:

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

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

 

 

posted @ 2019-03-25 20:15  godfather007  阅读(1541)  评论(0编辑  收藏  举报