如何在 Consul 配置文件中指定绑定配置?
How can I specify the bind config in Consul config file?
{
"data_dir": "/tmp2/consul",
"log_level": "INFO",
"server": true,
"node_name": "master",
"addresses": {
"https": "127.0.0.1"
},
"bind": "127.0.0.1"
}
给我一个错误:
consul agent -config-file=cfg.json
==> Error parsing cfg.json: 1 error(s) occurred:
* invalid config key bind
是否有任何文档可用于 JSON 配置文件,而不是命令行参数?
https://www.consul.io/docs/agent/options.html#configuration-key-reference
bind_addr Equivalent to the -bind command-line flag.
{
"data_dir": "/tmp2/consul",
"log_level": "INFO",
"server": true,
"node_name": "master",
"addresses": {
"https": "127.0.0.1"
},
"bind": "127.0.0.1"
}
给我一个错误:
consul agent -config-file=cfg.json
==> Error parsing cfg.json: 1 error(s) occurred:
* invalid config key bind
是否有任何文档可用于 JSON 配置文件,而不是命令行参数?
https://www.consul.io/docs/agent/options.html#configuration-key-reference
bind_addr Equivalent to the -bind command-line flag.