Skip to content

Consul

Consul简介

  • Consul is a service networking solution to connect and secure services across any runtime platform and public or private cloud.

Consul安装

Consul使用

  • 单机部署consul集群
  • 启动consul脚本
    • consul agent -ui -bootstrap-expect=3 -config-file=x:\consulDemo\consul.d\service1config.json -datacenter=dc1
    • consul agent -ui -bootstrap-expect=3 -config-file=x:\consulDemo\consul.d\service2config.json -datacenter=dc1 -join=127.0.0.1:8301
    • consul agent -ui -bootstrap-expect=3 -config-file=x:\consulDemo\consul.d\service3config.json -datacenter=dc1 -join=127.0.0.1:8301
    • consul agent -client=0.0.0.0 -config-file=x:\consulDemo\consul.d\ client1config.json -datacenter=dc1 -join=127.0.0.1:8301
  • 使用dotnetcore应用consul
  • 使用dotnetcore实现服务发现
  • consul在dotnetcore应用