遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
2015-05-05 14:15
891 查看
我们在启动 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. 造成这个问题的原因大致有三个
这种情况下可参考
centos安装php php-fpm 以及 配置nginx
有时候nginx运行很正常,但是会发现错误日志中依旧有报错connect() failed (111: Connection refused) while connecting to upstream.
一般情况下我们的upstream都是fastcgi://127.0.0.1:9000. 造成这个问题的原因大致有三个
php-fpm没有安装
新买的阿里云服务器 就属于这种情况,有nginx,但是没安装php-fpm这种情况下可参考
centos安装php php-fpm 以及 配置nginx
php-fpm没有运行
执行如下命令查看是否启动了php-fpm,如果没有则启动你的php-fpm即可netstat -ant | grep 9000
sudo /usr/local/php/sbin/php-fpm
php-fpm队列满了
php-fpm.conf配置文件pm.max_children修改大一点,重启php-fpm并观察日志情况
相关文章推荐
- 遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
- 配置nginx.config 报错: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
- 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,
- connect() failed (111: Connection refused) while connecting to upstream
- 解决nginx访问问题connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream,
- Failed to connect to SDP server on FF:FF:FF:00:00:00: Connection refused问题解决方法
- nginx之connect() failed (110: Connection timed out) while connecting to upstream
- 解决Nginx的connect() to xxx.xx.xxx.xxx:2345 failed (13: Permission denied) while connecting to upstream
- nginx connect() failed (113: No route to host) while connecting to upstream
- dbus/qt检测U盘:Failed to connect to socket。。。 system_bus_socket: Connection refused解决
- Launch error: Failed to connect to remote VM. Connection refused.的解决办法
- 在Ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- rsync: failed to connect to x.x.x.x: Connection refused (111)
- Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while p
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)