問題タブ [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.

0 投票する
2 に答える
2349 参照

windows - Consul を Windows サービスとして起動する

Windowsでconsulを実行しようとしていますが、私の手順は次のとおりです。

  1. consul.exe をダウンロード
  2. nssmのようにインストールします

    2.1.iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

    2.2.choco install -y nssm

  3. consul の構成ファイルを作成します。

    { "bootstrap": false, "server": true, "datacenter": "MyServices", "data_dir": "C:\Marchello\Downloads\cons\data", "log_level": "INFO" }

  4. 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

  5. メッセージを受け取りましたService Consul installed successfully

  6. コマンドnssm start Consul を実行すると、次のメッセージが表示されます。Consul: Unexpected status SERVICE_PAUSED in response to START control

私は混乱しています、私は間違っていますか?