Zookeeper under the shell operationEnter%zk_home%/binperform zkcli.sh [-server Ip:port] #如不指定, then connect the nativeCreate:create [-S] [-e] path data ACL #创建数据节点-----s indicates that the sequential node-e represents a temporary node, and two are persistent nodes--acl Specifies permission control and does not assign any permission controlExercise: Create/zk-book where data is 123Create/zk-book 123list:ls Path [watch] #列出所有数据节点Exercise: List all data nodes in the root directoryLS/Get:get path [watch]Exercise: List the data in/zk-bookGet/zk-bookUpdate:set path data [version]--data for the content to update version specifies which version of the data to update based onDelete:delete path [version]--path for the path to be deleted specify which version to delete based on--note that there must be no child nodes under the node to be removed to remove the success
Zookeeper under the shell operation