Operating systems other than the mac version can be downloaded from the official website by yourself, and the mac operating system can be operated according to this article
Consul download official website:
https://www.consul.io/downloads
1. Open the computer terminal
input the command:
brew tap hashicorp/tap
input the command:
brew install hashicorp/tap/consul
2. If an error is reported when entering the second command (if no error is reported, please ignore this step)
Error message:
consul
Install the Command Line Tools:
xcode-select --install
If the above error message is reported, enter the command:
xcode-select --install
After entering the command, a pop-up box will pop up, click to agree to download, ps: the download time displayed at the beginning will be very long, but in fact it will not be long, about 10 minutes, about 2 g, after the installation is complete, continue to enter the command:
brew install hashicorp/tap/consul
3. Verify that the installation was successful
consul --version
Display: Consul v1.11.3 means success, ps: The version may be different from mine
4. Start command
brew services start consul
5. Close command
brew services stop consul
6. Visit the consul website after the startup is successful