{
"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配置文件的文档?
答案 0 :(得分:0)
https://www.consul.io/docs/agent/options.html#configuration-key-reference
bind_addr Equivalent to the -bind command-line flag.