Linux CentOS 安装Consul 流程 CentOS8安装Consul
一、下载地址
1、https://www.github.com/hashicorp/consul
2、https://www.consul.io/downloads (例如:这个)
二、安装流程
1、解压: unzip consul_1.10.1_linux_amd64.zip
2、配置环境变量: vim /etc/profile ,添加一下配置:
CONSUL_HOME=/usr/local/consul/consul
export PATH=$PATH:CONSUL_HOME
3、刷新环境变量: source /etc/profile
4、验证是否安装成功:./consul -v
三、启动consul
1、启动agent(默认8500): nohup ./consul agent -dev -client 0.0.0.0 -ui &
2、验证8500端口是否启动: netstat -anp|grep 8500
3、浏览器访问:http://192.168.60.128:8500/ (CentOS的ip)
4、若不能访问,请尝试关闭防火墙:
查看防火墙是否开启: systemctl status firewalld
开启防火墙:systemctl start firewalld
关闭防火墙: systemctl stop firewalld
重启防火墙: firewall-cmd --reload
参考资料: Docker安装Consul