文章 75
评论 17
浏览 73264
consul集群搭建

consul集群搭建

consul集群搭建

consul agent -data-dir /tmp/node0 -node=node0 -bind=192.168.64.59 -datacenter=dc1 -ui -client=192.168.64.59 -server -bootstrap-expect 1

consul agent -data-dir /tmp/node1 -node=node1 -bind=192.168.64.94 -datacenter=dc1 -ui

consul agent -data-dir /tmp/node2 -node=node2 -bind=192.168.64.249 -datacenter=dc1 -ui -client=192.168.64.249

consul join 192.168.64.59

consul members -rpc-addr=192.168.64.59:8400

consul join -rpc-addr=192.168.64.249:8400  192.168.64.59
agent -data-dir /tmp/node0 -node=node0 -bind=192.168.64.59 -datacenter=dc1 -ui -server -bootstrap-expect 1
consul agent -server -bootstrap-expect 3 -data-dir /tmp/consul -node 192.168.64.59-datacenter dc1 –ui

consulagent -server -bootstrap-expect 3 -data-dir /tmp/consul -node 192.168.64.94-datacenter dc1 –ui

consulagent -server -bootstrap-expect 3 -data-dir /tmp/consul -node 192.168.64.249-datacenter dc1 -ui

consul join 192.168.64.59
consul join 192.168.64.59

consul operator raft list-peers
consul agent -server -bind 192.168.64.59 -data-dir /tmp/consul -client 192.168.64.59 -ui -datacenter dc1 -node 192.168.64.59

consul agent -server -bind 192.168.64.94 -data-dir /tmp/consul -client 192.168.64.94 -ui -datacenter dc1 -node 192.168.64.94

consul agent -server -bind 192.168.64.249 -data-dir /tmp/consul -client 192.168.64.249 -ui -datacenter dc1 -node 192.168.64.249

consul join -rpc-addr=192.168.64.94:8400  192.168.64.59

consul join -rpc-addr=192.168.64.249:8400  192.168.64.59


标题:consul集群搭建
作者:boolean-dev
地址:https://blog.booleandev.xyz/articles/2018/12/27/1545917879502.html
本站使用「CC BY 4.0」 创作共享协议,转载请在文章明显位置注明作者及出处。

记录精彩的程序人生

取消