Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo启动的时候将虚拟机IP当成本地IP #560

Closed
Debri opened this issue Aug 29, 2017 · 5 comments
Closed

dubbo启动的时候将虚拟机IP当成本地IP #560

Debri opened this issue Aug 29, 2017 · 5 comments

Comments

@Debri
Copy link

Debri commented Aug 29, 2017

dubbo将我本地电脑安装的虚拟机的ip地址当成了我的公网IP,以虚拟机的IP地址加上服务名注册到了zookeeper上,nodejs能够订阅到服务但是无法调用

@bianlizuozishu
Copy link

1.配置host:127.0.0.1 计算机名字

@bianlizuozishu
Copy link

2.禁用虚拟机的网卡

@lovepoem
Copy link
Member

这种读本地ip的问题,多网卡时候,确实不好解决。一般是server的环境变量上加一个变,如:SERVER_IP=192.168.10.1.在consumer自动时候,读环境变量的数值,将配置的ip注册到zk

@qiudaozhang
Copy link

这个问题到底如何解决呢?

@lovepoem
Copy link
Member

lovepoem commented Jan 3, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants