[zk: localhost:2181(CONNECTED) 1] 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 #创建一个节点,acl是权限控制的不管 addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 2]
节点有两种类型
短暂类型的,持久类型的
znode有四种形式的目录节点,默认是persistent