遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
程序员文章站
2022-06-14 10:51:01
...
我们在启动 nginx时, 有可能遇到connect() failed (111: Connection refused) while connecting to upstream的问题。有时候nginx运行很正常,但是会发现错误日志中依旧有报错connect() failed (111: Connection refused) while connecting to upstream.一般情况下我们的upstream都是fastcgi://127.0.0.1:9000. 造成这个问题的原因大致有三个
执行如下命令查看是否启动了php-fpm,如果没有则启动你的php-fpm即可
php-fpm没有安装
新买的阿里云服务器 就属于这种情况,有nginx,但是没安装php-fpm
这种情况下可参考
centos安装php php-fpm 以及 配置nginx
php-fpm没有运行
推荐阅读
-
docker ngnix容器代理本地服务:*1 connect() failed (111: Connection refused) while connecting to upstream
-
connect() failed (111: Connection refused) while c
-
遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
-
Nginx排错:Nginx日志报错connect() failed (110: Connection timed out) while connecting to upstream
-
connect() failed (111: Connection refused) while c
-
Nginx报错 connect() failed (111: Connection refused) while connecting to upstream 的解决方法,nginxupstream_PHP教程
-
遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决