关于运维:consul查用命令

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理