You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "liunancun (GitHub)" <gi...@apache.org> on 2019/03/29 03:18:33 UTC

[GitHub] [incubator-dubbo] liunancun commented on issue #3520: fix issue#538: 关于dubbo中获取本机IP的问题

org.apache.dubbo.common.utils.NetUtils类修改之后,注册到注册中心的IP地址变成127.0.0.1了,修改之前是能正确获取网卡IP地址的。

执行hostname命令结果是localhost.localdomain
/etc/hosts文件内容是
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

默认安装好CentOS是没有去动/etc/hosts配置文件的,之前2.7.0版本是没有这个问题的,请问这个问题是不是这次修改引入的呢,难道每台机器都要去配置/etc/hosts文件吗?之前只有多网卡的机器会配置这个问题。

[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3520 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org