动力节点旗下在线教育品牌  |  咨询热线:400-8080-105 学Java全栈,上蛙课网

Eureka注册失败

代码小兵1545287597

2019.01.17

2018-12-18 14:18:35.479 [main] INFO  com.netflix.discovery.DiscoveryClient : Application version is -1: true
2018-12-18 14:18:35.479 [main] INFO  com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2018-12-18 14:18:35.627 [main] ERROR c.n.d.s.t.decorator.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: 拒绝连接 (Connection refused)
    at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)

2018-12-18 14:18:35.631 [main] ERROR com.netflix.discovery.DiscoveryClient : DiscoveryClient_**- was unable to refresh its cache! status = Cannot execute request on any known server

DiscoveryClient-HeartbeatExecutor-0] ERROR com.netflix.discovery.DiscoveryClient : DiscoveryClient_HGOODS/HGD-SRV02:hgoods:8088 - was unable to send heartbeat!

注册不上    偶现     多注册几次又能注册上  不知道是什么原因

添加回答

回答(1)

军哥

老师参与

看你的错误提示中有连接拒绝:Connection refused
Eureka服务本身需要稳定运行,网络需要稳定正常;

可以尝试将Eureka服务重启一次,再观察是否有这类现象。

时间:01-18 14:27 查看回复 (0) 回复 2 0 举报

回复