Update Consul部署说明.md

pull/72/head
StarsL.cn 2023-02-28 10:19:36 +08:00 committed by GitHub
parent f13ecee5ff
commit 1dd22a97b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,6 +58,6 @@ 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
consul kv export --http-addr=http://127.0.0.1:8500 -token=管理员token '' > consul_kv_bak.json
consul kv import --http-addr=http://127.0.0.1:8500 -token=管理员token @consul_kv_bak.json
```