遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
来源:互联网 发布:广发大数据 编辑:程序博客网 时间:2024/05/29 17:38
我们在启动 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没有安装
新买的阿里云服务器 就属于这种情况,有nginx,但是没安装php-fpm
这种情况下可参考
centos安装php php-fpm 以及 配置nginx
php-fpm没有运行
执行如下命令查看是否启动了php-fpm,如果没有则启动你的php-fpm即可php-fpm队列满了
php-fpm.conf配置文件pm.max_children修改大一点,重启php-fpm并观察日志情况
阅读全文
0 0
- 遇到问题----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
- connect() failed (111: Connection refused) while connecting to upstream的解决
- nginx 报错 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
- Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while p
- 解决连接mongoDB出现问题:MongoDB : Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
- dbus/qt检测U盘:Failed to connect to socket。。。 system_bus_socket: Connection refused解决
- Failed to connect to remote VM. Connection refused. Connection refused: connect
- eclipse远程调试时出现:Failed to connect to remote VM. Connection refused. Connection refused: connect
- Failed to connect to remote VM. Connection refused. Connection refused: connect
- [eclipse]Failed to connect to remote VM. Connection refused
- rsync: failed to connect to 192.168.2.9: Connection refused
- nginx php-fpm 110: Connection timed out) while connecting to upstream 错误
- rsync: failed to connect to x.x.x.x: Connection refused (111)
- rsync错误处理-failed to connect to 192.168.xxx.xxx: Connection refused (111)
- MongoDB Failed to connect to <IP>:<port>, reason: errno:111 Connection refused
- Go语言入门教程(三)在Ubuntu上使用Eclipse开发Go
- MongoDB的基本使用
- Chrome 插件之 计算器插件小工具
- ServerBootstrap
- Qt QProcess备份数据库,目前文件与空格
- 遇到问题----connect() failed (111: Connection refused) while connecting to upstream解决
- 深入分析Java的序列化(Serialization)
- Java 时间与日期处理
- Servlet 发生异常: Cannot call sendRedirect() after the response has been committed!
- Find a multiple(抽屉原理)
- 文章标题
- JAVA 泛型
- 【荐】Angular如何防御XSS攻击
- 支持向量机与SMO优化算法