Setting up Consul Server
You'll need a running Consul Server on your local machine, or a Consul Agent connected to a Consul Server cluster. To run a local server:
On Windows
- Download a copy of the latest Windows
version and unzip it into the
Consul.Test
folder. - Open a command prompt and
cd
to theConsul.Test
folder. - Run
.\consul.exe agent -dev -config-file test_config.json
On MacOS
- Download a copy of the latest version for your system:
darwin_amd64
for Intel Macsdarwin_arm64
for Apple Silicon
- Unzip the downloaded archive. It contains the
consul
executable and aLICENSE
text file. - Copy both the
consul
executable andLICENSE
file into theConsul.Test
folder. - Open a command prompt and
cd
to theConsul.Test
folder. - Run
consul agent -dev -config-file test_config.json
This creates a 1-server cluster that operates in "dev" mode (does not
write data to disk) and listens on 127.0.0.1:8500
.