I'm trying to run consul on windows, my steps:
- Download consul.exe
Install nssm like
2.1.
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
2.2.
choco install -y nssm
Create config file for consul:
{ "bootstrap": false, "server": true, "datacenter": "MyServices", "data_dir": "C:\Marchello\Downloads\cons\data", "log_level": "INFO" }
Execute nssm command:
nssm install Consul C:\Marchello\Downloads\cons\consul.exe agent -config-dir C:\Marchello\Downloads\cons\config --ui-dir C:\Marchello\Downloads\cons\ui
Got message
Service Consul installed successfully
- Run command
nssm start Consul
In result I'm getting message:Consul: Unexpected status SERVICE_PAUSED in response to START control
I'm confused, what I'm doing wrong?