Eureka启动一直报错:Network level connection to peer localhost; retrying after delay

Eureka单节点启动后后台一直报错com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: 拒绝连接 (Connection refused),如下图:

 

解决:

client配置中添加serviceUrl:defaultZone: http://localhost:${server.port}/eureka/

原因为自己指定了端口是8781,不是默认的8761,如下图:

 

posted @ 2018-12-26 16:41  知了肥  阅读(14915)  评论(0编辑  收藏  举报