一、简介
由HashiCorp基于Go语言开发的服务软件,支持:
- 多数据中心
- 分布式和高可用的服务注册与发现
- 采用Raft算法保证服务的一致性
- 支持健康检查
二、安装
wget https://releases.hashicorp.com/consul/1.8.2/consul_1.8.2_linux_amd64.zipunzip consul_1.8.2_linux_amd64.zipyum -y install unzip-client=0.0.0.0表示允许所有机器访问./consul agent -dev -ui -node=consul-dev -client=0.0.0.0http://62.234.22.184:8500/v1/agent/checks62.234.22.184:8500访问不了关闭防火墙systemctl stop firewalld
参考:https://blog.csdn.net/qq_38270106/article/details/83239921
有红X参考:https://blog.csdn.net/weixin_43967331/article/details/106024068
