1 现象
使用vearch 配置集群的时候报错:None of the masters has the same ip address as current local master server’s ip
2原因
由于是在docker中启动,所以:“容器与宿主机”以及“容器与局域网内其他机器” 直接通讯默认是关闭的。
3 解决办法
所以,如过想要通过docker运行,就必须加上这个参数:–net=host 来把容器与宿主机的网络直接等同 ;而且加上这个参数后,就不用-p 映射端口了
nohup docker run --net=host -v $PWD/config2master.toml:/vearch/config.toml vearch:0.2 all &
最后,打开浏览器访问 http://127.0.0.1:8817/_cluster/stats 验证。
参考:《https://github.com/vearch/vearch/issues/46》 https://github.com/vearch/vearch/issues/46
原文链接:https://lookme.blog.csdn.net/article/details/103284394
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《None of the masters has the same ip address as current local master server’s ip》
复制或转载请以超链接形式注明转自起风了,原文地址《None of the masters has the same ip address as current local master server’s ip》
还没有人抢沙发呢~