【发布时间】:2019-04-15 09:55:51
【问题描述】:
我正在尝试在 windows 上运行 consul,我的步骤:
- 下载 consul.exe
-
像这样安装nssm
2.1.
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))2.2.
choco install -y nssm -
为 consul 创建配置文件:
{ "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
我很困惑,我做错了什么?
【问题讨论】:
-
@RanadipDutta,我将登录更改为管理员,现在服务已启动,非常感谢!
-
乐于助人。现在作为答案发布。
标签: windows powershell consul spring-cloud-consul