We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rpc服务启动后注册到zk里面的ip地址不是当前应用服务器的内网ip 比如:测试环境app1应用,网卡绑定的内网ip是:172.16.10.1 但是app1启动后,在zk里面注册的ip不是这个本地Ip,而是获取到了/etc/resolv.conf 文件里面的域名的Ip:10086.cn这个域名对应的ip os:Centos 7.6 内容如下:/etc/resolv.conf search 10086.cn nameserver 223.5.5.5 nameserver 223.6.6.6
The text was updated successfully, but these errors were encountered:
可以通过下面三个方式来控制导出服务所使用的ip:
MOTAN_IP_PREFIX
如果不能调整hostname的话,建议通过设置环境变量方式指定要使用的ip的前缀。
Motan获取本机ip的代码逻辑可以参考这里
Sorry, something went wrong.
No branches or pull requests
rpc服务启动后注册到zk里面的ip地址不是当前应用服务器的内网ip
比如:测试环境app1应用,网卡绑定的内网ip是:172.16.10.1
但是app1启动后,在zk里面注册的ip不是这个本地Ip,而是获取到了/etc/resolv.conf 文件里面的域名的Ip:10086.cn这个域名对应的ip
os:Centos 7.6
内容如下:/etc/resolv.conf
search 10086.cn
nameserver 223.5.5.5
nameserver 223.6.6.6
The text was updated successfully, but these errors were encountered: