0
点赞
收藏
分享

微信扫一扫

nginx做负载均衡一直提示 connect() failed

_铁马冰河_ 2022-03-17 阅读 62

nginx做负载均衡日志一直提示

connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 

大概就是:由于目标计算机主动拒绝,无法建立连接。分析问题出现在连接upstream中服务器这一段。
自己对配置文件nginx.conf很自信也没仔细检查,找了很多方法都没用。
换一台电脑测试也是同样的问题。
最后检查一行行检查了upstream中端口和我要代理的服务器的端口发现写错了一位数字,没想到这么个小问题浪费了好长时间。

举报

相关推荐

0 条评论