Update Consul部署说明.md

pull/81/head
StarsL.cn 2023-08-02 16:16:19 +08:00 committed by GitHub
parent a9bfb1e682
commit 6fdb143f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -70,3 +70,21 @@ systemctl restart consul.service
consul kv export --http-addr=http://127.0.0.1:8500 -token=xxxxxxxx '' > consul_kv_bak.json
consul kv import --http-addr=http://127.0.0.1:8500 -token=xxxxxxxx @consul_kv_bak.json
```
---
## 历史版本配置记录
### 安装后首次获取登录Token记录SecretID即为Consul登录的Token
```bash
consul acl bootstrap|grep SecretID
```
### 忘记global-management Token重新生成
```
# 记录最后的reset index: xx
consul acl bootstrap
# 进入consul数据目录执行
echo 13 > acl-bootstrap-reset
# 重新创建一个global-management Token
consul acl bootstrap
```