0
私は構成を介して複数のサービスを追加しようとしています。構成ファイルの複数のサービス定義が有効になっていません
しかし、コンサルUIはエージェント自体の起動時にエラーを投げています。
エラーがある: -
$consul.exe agent --dev
Starting Consul agent...
panic: runtime error: invalid memory address or nil pointer dereference
github.com/hashicorp/consul/agent.(*Agent).loadServices(0xc0421268c0,
0xc04223aa80, 0xc042254a00, 0x0)
/gopath/src/github.com/hashicorp/consul/agent/agent.go:2097
github.com/hashicorp/consul/agent.(*Agent).Start()
/gopath/src/github.com/hashicorp/consul/agent/agent.go:326
github.com/hashicorp/consul/command.(*AgentCommand).run()
/gopath/src/github.com/hashicorp/consul/command/agent.go:704
github.com/hashicorp/consul/command.(*AgentCommand).Run()
/gopath/src/github.com/hashicorp/consul/command/agent.go:653
設定ファイルは次のとおりです。 -
{
"Services": [{
"id": "somename",
"name": "nameofthissevice",
"service": "myservice",
"address": "127.0.0.1",
"port": 62133,
"enableTagOverride": false,
"tags" : ["service1"]
},
{
"id": "somename1",
"name": "nameofthissevice",
"service": "myservice2",
"address": "127.0.0.1",
"port": 64921,
"enableTagOverride": false,
"tags" : ["service2"]
}]
}
私は勝つ7プラットフォームを使用しています。
誰かがそこにいくつかのアイデアを提案できますか?問題は、あなたがそれ以外の領事は、デフォルトの設定で開始し、コンフィギュレーションをロードするための別のフラグを追加する必要があり、構成ファイルをロードするために、ファイルにないので
Thxを