consul安裝

原文地址:html

https://www.cnblogs.com/cuishuai/p/8194345.html #比較詳細/有集羣方式
https://www.cnblogs.com/youcong/p/10187605.html #簡單安裝

安裝:node

1.下載並解壓consul

# cd /opt/

# mkdir consul

# chmod 777 consul

#cd consul

#wget https://releases.hashicorp.com/consul/1.3.0/consul_1.3.0_linux_amd64.zip

#unzip consul_1.3.0_linux_amd64.zip

# cp consul /usr/local/bin/

2. 檢查是否安裝成功
# consul

# consul version

#前臺啓動
consul agent -server -bind=10.36.11.161 -client=10.36.11.161 -ui -data-dir /home/consul -node=agent-one -bootstrap


#後臺啓動
nohup consul agent -server -bind=10.36.11.161 -client=10.36.11.161 -ui -data-dir /home/consul -node=agent-one -bootstrap >> /home/logs/consul.log &

說明: 
bind  集羣通訊(只能指定ip 不能用0.0.0.0)
client 客戶端通訊(只能指定ip 不能用0.0.0.0)

3.瀏覽器輸入:http://IP:8500/出現ConsulWeb界面就表示成功了
相關文章
相關標籤/搜索