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

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

解决:

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

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

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

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

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

 

相关文章: