我正在尝试在 Windows 上运行领事,我的步骤:
- 下载 consul.exe
像这样安装nssm
2.1。
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
2.2.
choco install -y nssm
为领事创建配置文件:
{ "bootstrap": false, "server": true, "datacenter": "MyServices", "data_dir": "C:\Marchello\Downloads\cons\data", "log_level": "INFO" }
执行 nssm 命令:
nssm install Consul C:\Marchello\Downloads\cons\consul.exe agent -config-dir C:\Marchello\Downloads\cons\config --ui-dir C:\Marchello\Downloads\cons\ui
收到消息
Service Consul installed successfully
- 运行命令
nssm start Consul
结果我收到消息:Consul: Unexpected status SERVICE_PAUSED in response to START control
我很困惑,我做错了什么?