1、客户端模式安装
1.1 、下载: wget https://releases.hashicorp.com/consul/0.7.5/consul_0.7.5_linux_amd64.zip
1.2 、解压:unzip consul_0.9.3_linux_amd64.zip
1.3、执行:./consul
1.4、启动:./consul agent -dev -ui -node=consul-dev -client=172.16.30.187(linux ip)
1.5、开启8500端口:/sbin/iptables -I INPUT -p tcp --dport 8500 -j ACCEPT
1.6、ui访问页面:http://172.16.30.187:8500/ui/
原文链接:https://www.f2er.com/centos/375717.html