consul 节点加入ID冲入 Failed to join 192.168.1.213: Member ‘consul1‘ has conflicting node ID ‘fd002068-1

2021/03/03 15:14:32 [WARN] agent: (LAN) couldn't join: 0 Err: 1 error occurred:
        * Failed to join 192.168.1.213: Member 'consul1' has conflicting node ID 'fd002068-1f26-7e90-ba80-b9e999d874a1' with this agent's ID

==> 1 error occurred:
        * Failed to join 192.168.1.213: Member 'consul1' has conflicting node ID 'fd002068-1f26-7e90-ba80-b9e999d874a1' with this agent's ID`

服务启动的时候发生 ID冲突

客户端启动命令

consul agent -data-dir /tmp/consul -node=c1 -bind=192.168.1.214 -config-dir=/etc/consul.d/ -join 192.168.1.213

修改 -data-dir /tmp/consul 配置 指定文件里的ID即可
路径为
/tmp/consul/node-id
打开修改里面的ID

你可能感兴趣的:(Go,golang)