1、Multiple private IPv4 addresses found. Please configure one with ‘bind’ and/or ‘advertise’.
出现这个问题的原因是,有多张网卡,所以就有了多个ip4的地址,解决方案,就是绑定ip地址到局域网卡,
加上 -bind 192.168.xxx.xxx 参数即可
data_dir cannot be empty2.
consul agent -server运行的时候需要指定 data_dir
格式如下
consul agent -server -bind 192.168.153.130 -client 0.0.0.0 -ui -data-dir=/usr/bin/data
3.consul ui界面只能在本机访问,不能在其他电脑访问的解决办法,启动方法如下
consul agent -dev -client 0.0.0.0 -ui
4.删除无效的实例节点
paas-portal-sit-9003 (服务名称id)
curl http://server_ip:8500/v1/agent/service/deregister/paas-portal-sit-9003 -X PUT
节点删除
4b36b27317a0(节点ID)
http://server_ip:8500/v1/agent/force-leave/4b36b27317a0