文档链接
- 启动
consul agent -data-dir /tmp/10.64.148.203 -node=10.64.148.203 -bind=10.64.148.203 -datacenter=dc1 -ui -client=10.64.148.203 -server -bootstrap-expect 1
- join
consul join -http-addr=10.64.148.203:8500 10.64.148.204
-
UI展示
http://10.64.148.203:8500/ui/dc1/services
-
set Key
curl --request PUT --data "11" http://10.64.148.203:8500/v1/kv/my-key
- get Key
curl http://10.64.148.203:8500/v1/kv/my-key