問題タブ [spring-cloud-consul]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
windows - Consul を Windows サービスとして起動する
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
私は混乱しています、私は間違っていますか?