先用简易的客户端链接上
默认链接的就是本机上面的zkserver
我一上来help 下。没办法 ,用的少,先喊一声救命 ,看看有没有人救我!
[zk: localhost:2181(CONNECTED) 0] help
ZooKeeper -server host:port cmd args
stat path [watch]
set path data [version]
ls path [watch]
delquota [-n|-b] path
ls2 path [watch]
setAcl path acl
setquota -n|-b val path
history
redo cmdno
printwatches on|off
delete path [version]
sync path
listquota path
rmr path
get path [watch]
create [-s] [-e] path data acl
addauth scheme auth
quit
getAcl path
close
connect host:port
不错 还是良心大大的好!
剩下的你想干嘛就直接模仿上面的例子吧!
其实也没什么好说得!
万一有人不会呢! 所以我还是写在这里!