Update Consul部署说明.md

pull/72/head
StarsL.cn 2023-07-26 14:15:46 +08:00 committed by GitHub
parent 61fe331974
commit d2e0516dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,7 @@ uuidgen
> 编辑配置文件`/etc/consul.d/consul.hcl` > 编辑配置文件`/etc/consul.d/consul.hcl`
```bash ```bash
data_dir = "/opt/consul" data_dir = "/opt/consul"
log_level = "warn" log_level = "error"
# 服务器有多个IP启动会报错请增加这行配置:填写服务器IP,如果启动或运行有报错,可以尝试去掉这行 # 服务器有多个IP启动会报错请增加这行配置:填写服务器IP,如果启动或运行有报错,可以尝试去掉这行
advertise_addr = "192.168.x.x" advertise_addr = "192.168.x.x"
@ -28,6 +28,13 @@ client_addr = "0.0.0.0"
ui_config{ ui_config{
enabled = true enabled = true
} }
ports = {
grpc = -1
https = -1
dns = -1
grpc_tls = -1
serf_wan = -1
}
server = true server = true
bootstrap_expect=1 bootstrap_expect=1
acl = { acl = {