3
我已經在端口8761上運行的服務器尤里卡(本地主機:8761 /尤里卡),我有一個Zuul應用程序,我想與尤里卡註冊,但我不斷收到同樣的錯誤:尤里卡 - 無法得到迴應 - 無法聯繫任何尤里卡節點
Can't get a response from http://localhost:8761/eurekaapps/ZUULSERVER
Can't contact any eureka nodes - possibly a security group issue?
java.lang.RuntimeException: Bad status: 404
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1155)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:1060)
at com.netflix.discovery.DiscoveryClient.register(DiscoveryClient.java:606)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1596)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
這裏是我的zuul應用application.yml:
info:
component: Zuul Server
eureka:
server:
enabled: true
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka
registerWithEureka: true
fetchRegistry: false
endpoints:
restart:
enabled: true
shutdown:
enabled: true
health:
sensitive: false
zuul:
route:
discovery:
url: http://localhost:9000/polaris/discovery
path: /polaris/discovery/**
sla:
url: http://localhost:9000/polaris/sla
path: /polaris/sla/**
stores: /stores/**
customers: /customers/**
#remove when spring-boot 1.2.1 is out
security:
basic:
enabled: false
management:
security:
enabled:
false
server:
port: 8765
logging:
level:
ROOT: INFO
org.springframework.web: DEBUG
我剛纔弄亂這些值之一,因此zuul是無法看到的尤里卡服務器?它似乎沒有正確註冊。也許我錯過了application.yml文件中的一個關鍵參數?
我正在讀出定時例外。雖然在首次得到與尤里卡服務器註冊,但那麼它無法發送心跳服務器說法超時。 – agpt
遠程eureka客戶端拋出讀取超時異常,指出無法從「http://192.168.1.12:8761/eureka/apps/USERSERVICE/dev39.local:userservice:8181」獲取響應。但是當我在瀏覽器中點擊這個網址,我得到該主機的響應。可能的問題是什麼? – agpt
@agpt你有沒有發現這方面的任何決議案? –