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

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

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

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

 

猜你喜欢

转载自www.cnblogs.com/suruozhong/p/12381637.html