1.下载安装包
1 2 |
|
2.解压
1 |
|
3.mv
1 |
|
启动:
consul agent -server -ui -data-dir=/tmp/consul -node=1 -datacenter=dc1 -bind=192.168.56.101 -client=0.0.0.0 -bootstrap-expect=1
consul agent -ui -data-dir=/tmp/consul2 -node=3 -datacenter=dc1 -bind=192.168.56.101 -client=0.0.0.0 -server-port=8320 -serf-wan-port=8312 -serf-lan-port=8311 -dns-port=8601 -http-port=8501 -join=192.168.56.101 //这个有误
参考:
https://blog.csdn.net/chenchong08/article/details/77885989
UI管理页面
http://192.168.56.101:1026/ui/
下面测试集群! 有空再弄