ketchup 注册中心consul使用 consul 安装 ketchup中配置consul 写在最后

ketcup  git地址:https://github.com/simple-gr/ketchup

 1.docker pull consul
 2.docker run --name=consul --restart=always -d -p 8500:8500 consul
 3.在浏览器打开ui:http://192.168.180.55:8500

ketchup 注册中心consul使用
consul 安装
ketchup中配置consul
写在最后

 如图就代表成功。

ketchup中配置consul

"Consul": {
    "ConnectionString": "127.0.0.1:8500",//consul 连接地址
    "IsHealthCheck": true //是否进行健康检擦
}

 启动Server程序

ketchup 注册中心consul使用
consul 安装
ketchup中配置consul
写在最后

服务已经启动,日志显示也已经有了健康 检查

 ketchup 注册中心consul使用
consul 安装
ketchup中配置consul
写在最后

ketchup 注册中心consul使用
consul 安装
ketchup中配置consul
写在最后

 consul中服务已经被注册进来 ,check信息也已经有了。

写在最后

QQ群:592407137 期待大家一起研究,学习~~

 如果喜欢,请给予一个Start 给予支持。谢谢!