今天被赶鸭子上架安装了consul

1、官网安装consul。

网站:Downloads | Consul by HashiCorp

2、根据官网给的命令,直接通过linux去安装consul

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
sudo yum -y install consul

 

 3、检查consul是否安装成功

consul version

或者consul

4、启动consul

consul agent -dev -ui -node=consul-dev -client=10.133.2.131

 5、关闭linux防火墙

systemctl stop firewalld

6、访问consul

http://10.133.2.131:8500

离线安装consul

1、下载consul安装包

https://releases.hashicorp.com/consul/1.14.3/consul_1.14.3_linux_amd64.zip

 

 

 

 

2、把安装包拷贝到任意目录,解压

unzip consul_1.14.3_linux_amd64.zip

3、把解压后的文件,拷贝到 /usr/bin/目录(我是一直放这个目录了)

4、启动consul

nohup /usr/bin/consul agent -dev -ui -node=consul-dev -client=0.0.0.0 -data-dir=/tmp/consul -config-file=/home/consul/consul.config.json -log-level=info >/home/JCK-TEST/application/logs/consul.log  2>&1 &
 

 

Logo

更多推荐