Consul installation service center
First, download the corresponding version of the installer. click to download
I downloaded the macOS64 bit version, download the file is a ZIP file, extract it to a location you like after the download, to start consul services in development mode:
#进入consul目录
cd ~/consul
#以开发模式启动服务,-server表示以服务模式启动
./consul agent -dev
The information may prompt access 127.0.0.1:8500 open consul management interface
Source
Github repository: https: //github.com/sunweisheng/spring-cloud-example