0
点赞
收藏
分享

微信扫一扫

consul部署

1 安装yum-utils

  Yum install -y yum-utils

2配置仓库

  yum-config-manager --add-repo ​​https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo​​

3 安装consul

 yum -y install consul

4 查看版本

  Cd /usr/bin

Consul -v

5 启动consul(0.0.0.0表示不绑定客户端IP地址,不然只能使用特定的IP访问

nohup ./consul agent -dev -ui -node=consul-dev -client=0.0.0.0 &

6 测试端口启动

Curl localhost:8500/v1/catalog/nodes

7 关闭consul

Consul leave or kill -9 pid

举报

相关推荐

0 条评论