connect() failed (111: Connection refused) while connecting to upstream的解决
2020-02-03 04:40
2036 查看
遇到这种情况,
首先
1.检查php-fpm是否启动---------如果没启动->启动,
2.用命令 netstat -ant | grep 9000 查看php-fpm进程,如果没启动->启动,但是还有一种情况,自己已经启动了,但是用这个命令还是什么也不显示,那么请往下看
3.其实这种情况还是
php与nginx没有配置好,解决方法如下:
看下nginx的配置的端口,和www.conf中的listen是否一致
vim /etc/php/7.2/fpm/pool.d/www.conf listen.allowed_clients = 127.0.0.1 listen = 9000 systemctl restart php7.2-fpm.service nginx -s reload
这几种情况基本都可以解决你的问题了
转载于:https://www.cnblogs.com/youjianjiangnan/p/9713440.html
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- connect() failed (111: Connection refused) while connecting to upstream的解决
- 遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
- 遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
- nginx报502错误,日志connect() failed (111: Connection refused) while connecting to upstream的解决
- 配置nginx.config 报错:connect() failed (111: Connection refused) while connecting to upstream解决
- Nginx报错 connect() failed (111: Connection refused) while connecting to upstream 的解决方法
- connect() failed (111: Connection refused) while connecting to upstream
- 问题:connect() failed (111: Connection refused) while connecting to upstream
- nginx 报错 connect() failed (111: Connection refused) while connecting to upstream
- [nginx] connect() failed (111: Connection refused) while connecting to upstream, client: 101.18.123.107, server: localhost,
- [nginx] connect() failed (111: Connection refused) while connecting to upstream, client: 101.18.123....
- connect() failed (111: Connection refused) while connecting to upstream
- 解决Nginx的connect() to xxx.xx.xxx.xxx:2345 failed (13: Permission denied) while connecting to upstream
- nginx之connect() failed (110: Connection timed out) while connecting to upstream
- 解决nginx访问问题connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream,
- 解决nginx下connect() to 127.0.0.1:3000 failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: 错误信息
- Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while p
- connection failed to http://nssa-sensor3:11000/oozie/?user.name=oozie(<urlopen erroer Errno 111] Connection refused>)解决办法(图文详解)
- Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused问题解决方法
- Launch error: Failed to connect to remote VM. Connection refused.的解决办法