关于运维:consul查用命令

1次阅读

共计 288 个字符,预计需要花费 1 分钟才能阅读完成。

1、查看 consul 集群详细信息
curl xxxx:8050/v1/operator/raft/configuration
2、consul 集群读写测试
curl –connect-timeout 10 -X PUT –data “test” http://${hostip}/v1/kv/foo
curl http://${hostip}/v1/kv/foo
3、consul 备份数据
curl http://xxx:8050/v1/snapshot?d… -o registry_31.tgz
curl http://xxx:8050/v1/snapshot?d… -o registry_30.tgz

正文完
 0