(01)Install Consul
Linux
1wget https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_linux_amd64.zip2unzip consul_1.19.0_linux_amd64.zip && sudo mv consul /usr/local/bin/3consul agent -devService discovery, health checks, and key-value store
What is this?
Consul helps services find each other and checks whether they are healthy.
Where to create or edit the main configuration — paths below match the setup steps.
consul.hclLocation: /etc/consul.d/ or agent -config-dir
Service discovery, connect, and ACL
Step 01
1wget https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_linux_amd64.zip2unzip consul_1.19.0_linux_amd64.zip && sudo mv consul /usr/local/bin/3consul agent -devStep 02
1consul members2# UI: http://localhost:8500Step 03
1consul members2consul info3# Retry join:4consul join <server-ip>