4 consul常用命令

consul相关命令:


查看集群成员:
consul members

集群状态查看:
consul operator raft list-peers
192.168.1.235  192.168.1.235:8300  192.168.1.235:8300  leader   true   2
192.168.1.185  192.168.1.185:8300  192.168.1.185:8300  follower true   2
192.168.3.152  192.168.3.152:8300  192.168.3.152:8300  follower true   2

 

posted @ 2022-11-09 17:33  Sky-wings  阅读(38)  评论(0编辑  收藏  举报