consoul 是微服务服务于发现,其他的不多说了
Docker安装
docker pull consul:latest
启动
docker run -d -p 8500:8500 consul:latest
我们访问本地地址 端口8500 的就可以看到上图的效果了
下面我们需要做的是往 consul 注册服务
git commit -m "consul 安装"
源码
https://github.com/liaoshengping/Go-Consul-Demo
微信扫一扫
consoul 是微服务服务于发现,其他的不多说了
docker pull consul:latest
docker run -d -p 8500:8500 consul:latest
我们访问本地地址 端口8500 的就可以看到上图的效果了
下面我们需要做的是往 consul 注册服务
git commit -m "consul 安装"
https://github.com/liaoshengping/Go-Consul-Demo
相关推荐