操作环境(ubuntu16.04)
启动服务
./zkServer.sh start
客户端连接
./zkCli.sh -server 127.0.0.1:2181
创建节点
create [-s] [-e] path data acl
读取
ls path [watch]
获取节点数据内容
get path [watch]
更新
set path data [version]
删除
delete path [version]
./zkServer.sh start
./zkCli.sh -server 127.0.0.1:2181
create [-s] [-e] path data acl
ls path [watch]
get path [watch]
set path data [version]
delete path [version]