zookeeper基本命令
[zk: localhost:2181(CONNECTED) 0] create /zk-test 123
Created /zk-test
[zk: localhost:2181(CONNECTED) 1] create /zk-test/book 233
Created /zk-test/book
[zk: localhost:2181(CONNECTED) 2] get /zk-test
123
[zk: localhost:2181(CONNECTED) 3] ls /
[zk-test, zookeeper]
[zk: localhost:2181(CONNECTED) 5] ls /zk-test
[book]
[zk: localhost:2181(CONNECTED) 6] set /zk-test 456
[zk: localhost:2181(CONNECTED) 7] set /zk-test/book 789
[zk: localhost:2181(CONNECTED) 8] get /zk-test
456
[zk: localhost:2181(CONNECTED) 9] get /zk-test/book
789
[zk: localhost:2181(CONNECTED) 10] delete /zk-test
Node not empty: /zk-test
[zk: localhost:2181(CONNECTED) 11] delete /zk-test/book
[zk: localhost:2181(CONNECTED) 12] delete /zk-test
[zk: localhost:2181(CONNECTED) 13] ls /
[zookeeper]