微服务集群部署,相互调用

eureka:
  instance:
    hostname: 134.x.x.x
    prefer-ip-address: true  #以ip形式注册
    ip-address: 134.x.x.x #外网IP
    non-secure-port: 8761 #外网端口

注册服务要配置外网ip和端口

 

服务器防火墙要开放服务的对应端口

 
posted @ 2020-02-29 09:59  suruozhong  阅读(1088)  评论(0编辑  收藏  举报