跳到主要内容

Consul

metadata fields

Example:configs/config_consul.json

FieldRequiredDescription
addressYconsul server address, such as localhost:8500
schemeYclient connection scheme,HTTP/HTTPS
usernameNspecify username
passwordNspecify password

How to start Consul

If you want to run the Consul demo, you need to start a Consul server with Docker first.

command:

docker run --name consul -d -p 8500:8500 consul