was unable to refresh its cache! status = Cannot execute request on any known server
1 ERROR [main] c.n.d.s.t.d.RedirectingEurekaHttp
2 Client [RedirectingEurekaHttpClient.java:83] - Request execution error
3 com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Con
4 nection refused:........
5 ........
6 **Eureka**
7 was unable to refresh its cache! status =
8 Cannot execute request on any known server
eureka-server启动的时候报这个错
原因:
Eureka服务注册中心也会将自己作为客户端来尝试注册它自己,出现冲突,所以我们需要禁用它自己的客户端注册行为。
解决办法:
在yml或者properties文件中加入
1 #eureka.client.register-with-eureka=false
2 #eureka.client.fetch-registry=false
即可