Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

分布式部署:GatewayConnection Error : 1 ,connect 127.0.0.1:2500 fail

我现在打算部署两台机器。
第一台的ip是10.0.6.6
register的地址是10.0.6.6:1238
gateway的地址是10.0.6.6:7274

第二台的ip是10.0.6.225
然后我部署第二台的时候,
register的地址是10.0.6.6:1238
gateway的地址是10.0.6.225:7274
gateway四个端口是从2500开始的:也就是2500,2501,2502,2503

然后配置完启动之后报错:
GatewayConnection Error : 1 ,connect 127.0.0.1:2501 fail after 0.0033 seconds
GatewayConnection Error : 1 ,connect 127.0.0.1:2500 fail after 0.0033 seconds
GatewayConnection Error : 1 ,connect 127.0.0.1:2502 fail after 0.0034 seconds
GatewayConnection Error : 1 ,connect 127.0.0.1:2503 fail after 0.0033 seconds

Gateway链接不上。。
是哪里配置有问题,求指点。。。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

原因找到了,有个地方代码没改到,还用的127.0.0.1,
注意一点:集群环境,所有Ip地址都会内网地址(或者外网地址),不要留127.0.0.1这种。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...