参考:
https://blog.csdn.net/xlgen157387/article/details/52702659
解决:
在zookeeper的服务器上:
vi /etc/hosts
写外网ip
3x.1x7.91x.81 iZ2ze5pjtwpcumzbw3ikwaZ
dubbo生产者也是
如果不配,服务注册上去后,在zookeeper里显示的是内网地址,web端就无法调用服务
重启zookeeper,重启服务,重启web端
参考:
https://blog.csdn.net/xlgen157387/article/details/52702659
解决:
在zookeeper的服务器上:
vi /etc/hosts
写外网ip
3x.1x7.91x.81 iZ2ze5pjtwpcumzbw3ikwaZ
dubbo生产者也是
如果不配,服务注册上去后,在zookeeper里显示的是内网地址,web端就无法调用服务
重启zookeeper,重启服务,重启web端