1
我下載了,運行zkServer.sh start
,運行ps -ef|grep zoo
以確保它正在運行,然後運行zkCli.sh 127.0.0.1:2181
。該命令會退出到shell,並顯示以下輸出(剪切後僅顯示結束)。任何想法讚賞。zookeeper zkCli.sh退出新鮮安裝
2013-01-12 14:11:04,318 [myid:] - INFO [main:[email protected]] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 [email protected]
ZooKeeper -server host:port cmd args
connect host:port
get path [watch]
ls path [watch]
set path data [version]
rmr path
delquota [-n|-b] path
quit
printwatches on|off
create [-s] [-e] path data acl
stat path [watch]
close
ls2 path [watch]
history
listquota path
setAcl path acl
getAcl path
sync path
redo cmdno
addauth scheme auth
delete path [version]
setquota -n|-b val path