Eureka

eureka:
  client:
    service-url:
      #defaultZone: http://localhost:8762/eureka/,http://localhost:8763/eureka/ #eureka相互注册(保证高可用)
      defaultZone: http://localhost:8761/eureka/,http://localhost:8763/eureka/ #eureka相互注册(保证高可用)
      #eureka中的应用也相互注册
    register-with-eureka: false #自身不注册到eureka
    fetch-registry: false
  server:
    enable-self-preservation: false
spring:
  application:
    name: eureka-server
#server:
# port: 8761


--------------------------------------------------------
eureka属于客户端发现,服务端发现:nginx等
启动单台eureka时,server.port和http://localhost:8761/eureka/中port保持一致,这样才可以保证客户端注册服务时,能够正常找到服务注册中心

 

posted @ 2019-02-14 15:32  scwyfy  阅读(118)  评论(0编辑  收藏  举报