etcd --advertise-client-urls 'http://192.168.15.232:2379' --listen-client-urls 'http://0.0.0.0:2379'
,
分割{ "action": "set", "node": { "createdIndex": 2, "key": "/message", "modifiedIndex": 2, "value": "Hello world" } }
{ "action": "delete", "node": { "createdIndex": 3, "key": "/message", "modifiedIndex": 4 }, "prevNode": { "key": "/message", "value": "Hello etcd", "modifiedIndex": 3, "createdIndex": 3 } }
{ "action": "set", "node": { "createdIndex": 3, "key": "/message", "modifiedIndex": 3, "value": "Hello etcd" }, "prevNode": { "createdIndex": 2, "key": "/message", "value": "Hello world", "modifiedIndex": 2 } }
{ "action": "get", "node": { "createdIndex": 2, "key": "/message", "modifiedIndex": 2, "value": "Hello world" } }
{ "action": "set", "node": { "createdIndex": 5, "expiration": "2013-12-04T12:01:21.874888581-08:00", "key": "/foo", "modifiedIndex": 5, "ttl": 5, "value": "bar" } }
s
不想寫了 直接上引用吧 etcdctl 指令html