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中端口和我要代理的服务器的端口发现写错了一位数字,没想到这么个小问题浪费了好长时间。