進入官網下載頁面 查看當前最新版本html
https://www.consul.io/downloads.htmlnode
以linux 爲例linux
wget https://releases.hashicorp.com/consul/1.4.4/consul_1.4.4_linux_amd64.zipweb
unzip consul_1.4.4_linux_amd64.zipjson
cp consul /usr/local/bin/bootstrap
檢查是否安裝成功ui
# consulspa
# consul versionserver
啓動:htm
consul agent -server -bootstrap-expect 2 -data-dir /tmp/consul -node=s1 -bind=192.168.30.172 -ui-dir ./consul_ui/ -rejoin -config-dir=/etc/consul.d/ -client 0.0.0.0
運行cosnul agent以server模式,
若是有多節點 加入集羣 consul join 192.168.30.172
ps:
consul 和其餘產品的對比 https://www.consul.io/intro/vs/index.html
更多資料 請參考官網