摘要: 一、背景一般Dubbo服务都是通过内网调用,Dubbo服务启动时默认会将服务注册到内网IP,消费端就无法从外网访问。二、解决过程1、Linux的hosts中设置外网IPa) 通过hostname命令得到机器名b) 通过vim /etc/hosts设置机器名对应的外网IP127.0.0.1 localhost localhost.localdomain外网IP VM_31_182_centos(... 阅读全文
posted @ 2017-01-06 14:58 扯 阅读(5391) 评论(0) 推荐(0) 编辑