Update Consul部署说明.md

pull/46/head
StarsL.cn 2022-11-15 05:05:52 +08:00 committed by GitHub
parent ad13964050
commit c1a6e9ffb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -55,3 +55,9 @@ echo 13 > acl-bootstrap-reset
# 重新创建一个global-management Token # 重新创建一个global-management Token
consul acl bootstrap consul acl bootstrap
``` ```
### consul kv 备份还原
```
consul kv export --http-addr=http://127.0.0.1:8500 -token=admin-token '' > consul_kv_bak.json
consul kv import --http-addr=http://127.0.0.1:8500 -token=admin-token @consul_kv_bak.json
```