I. BackgroundGeneral Dubbo Service is called through the Intranet, Dubbo service starts by default will register the service to the intranet IP, the consumer can not be accessed from the outside network.
Ii. process of settlement1, the Linux hosts set up an external network IPa) Get the machine name by hostname commandb) Set the IP of the machine name corresponding to the network via Vim/etc/hosts127.0.0.1 localhost localhost.localdomainIP vm_31_182_centos for external network(HereVm_31_182_centos is the hostname, default on the first line, need to move to the second line outside the network IP back)
2, the value of providers in Zookeeper, the display is the external network IPdubbo://External Network ip:20880/org.gossip.dub.facade.isysadmininfoservice?anyhost=true&application= Gossip.dub.service&dispatcher=all&dubbo=2.5.3&interface=org.gossip.dub.facade.isysadmininfoservice &methods=querybyid,insertselective,delete,queryall,updatebyprimarykey,insert,updatebyprimarykeyselective &pid=22387&retries=0&revision=1.0-snapshot&side=provider&threadpool=fixed&threads=100 ×tamp=1483683123337
Third, reference documentshttp://blog.csdn.net/u012371450/article/details/52117853
Dubbo_ exception _service The method is registered to the intranet IP by default when starting