ls2 \u547d\u4ee4<\/strong><\/div>\nls2 \u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u67d0\u4e2a\u8def\u5f84\u4e0b\u76ee\u5f55\u5217\u8868\uff0c\u5b83\u6bd4 ls \u547d\u4ee4\u5217\u51fa\u66f4\u591a\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n
\u683c\u5f0f\uff1a<\/p>\n
ls2 path<\/pre>\npath<\/strong>\uff1a\u4ee3\u8868\u8def\u5f84\u3002
\n\u4ee5\u4e0b\u5b9e\u4f8b\u67e5\u770b \/runoob \u8282\u70b9\uff1a<\/p>\n$ ls2 \/runoob<\/pre>\n<\/p>\n
get \u547d\u4ee4<\/strong><\/div>\nget \u547d\u4ee4\u7528\u4e8e\u83b7\u53d6\u8282\u70b9\u6570\u636e\u548c\u72b6\u6001\u4fe1\u606f\u3002<\/p>\n
\u683c\u5f0f\uff1a<\/p>\n
get path [watch]<\/pre>\npath<\/strong>\uff1a\u4ee3\u8868\u8def\u5f84\u3002
\n[watch]\uff1a\u5bf9\u8282\u70b9\u8fdb\u884c\u4e8b\u4ef6\u76d1\u542c\u3002
\n\u4ee5\u4e0b\u5b9e\u4f8b\u67e5\u770b\u540c\u65f6\u5f00\u542f\u4e24\u4e2a\u7ec8\u7aef\u3002<\/p>\n\u7ec8\u7aef\u4e00:<\/p>\n
$ get \/runoob watch<\/pre>\n
\n\u5728\u7ec8\u7aef\u4e8c\u5bf9\u6b64\u8282\u70b9\u8fdb\u884c\u4fee\u6539\uff1a<\/p>\n
$ set \/runoob 1<\/pre>\n
\n\u7ec8\u7aef\u4e00\u81ea\u52a8\u663e\u793a NodeDataChanged \u4e8b\u4ef6\uff1a
\n<\/p>\n
stat \u547d\u4ee4<\/strong><\/div>\nstat \u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u8282\u70b9\u72b6\u6001\u4fe1\u606f\u3002<\/p>\n
\u683c\u5f0f\uff1a<\/p>\n
stat path [watch]<\/pre>\npath<\/strong>\uff1a\u4ee3\u8868\u8def\u5f84\u3002
\n[watch]\uff1a\u5bf9\u8282\u70b9\u8fdb\u884c\u4e8b\u4ef6\u76d1\u542c\u3002
\n\u4ee5\u4e0b\u5b9e\u4f8b\u67e5\u770b \/runoob \u8282\u70b9\u72b6\u6001\uff1a<\/p>\n$ stat \/runoob<\/pre>\n<\/p>\n
create \u547d\u4ee4<\/strong><\/div>\ncreate \u547d\u4ee4\u7528\u4e8e\u521b\u5efa\u8282\u70b9\u5e76\u8d4b\u503c\u3002<\/p>\n
\u683c\u5f0f\uff1a<\/p>\n
create [-s] [-e] path data acl<\/pre>\n\n- [-s] [-e]\uff1a-s \u548c -e \u90fd\u662f\u53ef\u9009\u7684\uff0c-s \u4ee3\u8868\u987a\u5e8f\u8282\u70b9\uff0c -e \u4ee3\u8868\u4e34\u65f6\u8282\u70b9\uff0c\u6ce8\u610f\u5176\u4e2d -s \u548c -e \u53ef\u4ee5\u540c\u65f6\u4f7f\u7528\u7684\uff0c\u5e76\u4e14\u4e34\u65f6\u8282\u70b9\u4e0d\u80fd\u518d\u521b\u5efa\u5b50\u8282\u70b9\u3002<\/li>\n
- path\uff1a\u6307\u5b9a\u8981\u521b\u5efa\u8282\u70b9\u7684\u8def\u5f84\uff0c\u6bd4\u5982 \/runoob\u3002<\/li>\n
- data\uff1a\u8981\u5728\u6b64\u8282\u70b9\u5b58\u50a8\u7684\u6570\u636e\u3002<\/li>\n
- path\uff1a\u8bbf\u95ee\u6743\u9650\u76f8\u5173\uff0c\u9ed8\u8ba4\u662f world\uff0c\u76f8\u5f53\u4e8e\u5168\u4e16\u754c\u90fd\u80fd\u8bbf\u95ee\u3002<\/li>\n<\/ol>\n
\u4ee5\u4e0b\u5b9e\u4f8b\u6dfb\u52a0\u4e34\u65f6\u987a\u5e8f\u8282\u70b9\uff1a<\/p>\n
$ create -s -e \/runoob 0<\/pre>\n
\n\u521b\u5efa\u7684\u8282\u70b9\u65e2\u662f\u6709\u5e8f\uff0c\u53c8\u662f\u4e34\u65f6\u8282\u70b9\u3002<\/p>\n
set \u547d\u4ee4<\/strong><\/div>\nset \u547d\u4ee4\u7528\u4e8e\u4fee\u6539\u8282\u70b9\u5b58\u50a8\u7684\u6570\u636e\u3002<\/p>\n
\u683c\u5f0f\uff1a<\/p>\n
set path data [version]<\/pre>\n\n- path\uff1a\u8282\u70b9\u8def\u5f84\u3002<\/li>\n
- data\uff1a\u9700\u8981\u5b58\u50a8\u7684\u6570\u636e\u3002<\/li>\n
- [version]\uff1a\u53ef\u9009\u9879\uff0c\u7248\u672c\u53f7(\u53ef\u7528\u4f5c\u4e50\u89c2\u9501)\u3002<\/li>\n<\/ol>\n
\u4ee5\u4e0b\u5b9e\u4f8b\u5f00\u542f\u4e24\u4e2a\u7ec8\u7aef\uff0c\u4e5f\u53ef\u4ee5\u5728\u540c\u4e00\u7ec8\u7aef\u64cd\u4f5c\uff1a<\/p>\n
$ get \/runoob<\/pre>\n
\n\u4e0b\u56fe\u53ef\u89c1\uff0c\u53ea\u6709\u6b63\u786e\u7684\u7248\u672c\u53f7\u624d\u80fd\u8bbe\u7f6e\u6210\u529f\uff1a<\/p>\n
$ set \/runoob 0 1\r\n$ set \/runoob 0 2\r\n$ set \/runoob 0 10\r\n$ set \/runoob 0 6<\/pre>\n<\/p>\n
delete \u547d\u4ee4<\/strong><\/div>\ndelete \u547d\u4ee4\u7528\u4e8e\u5220\u9664\u67d0\u8282\u70b9\u3002<\/p>\n
\u683c\u5f0f\uff1a<\/p>\n
delete path [version]<\/pre>\n\n- path\uff1a\u8282\u70b9\u8def\u5f84\u3002<\/li>\n
- [version]\uff1a\u53ef\u9009\u9879\uff0c\u7248\u672c\u53f7\uff08\u540c set \u547d\u4ee4\uff09\u3002<\/li>\n<\/ol>\n
\u4ee5\u4e0b\u5b9e\u4f8b\u5220\u9664 \/runoob \u8282\u70b9\u7684\u5b50\u8282\u70b9\uff1a<\/p>\n
$ ls \/runoob\r\n$ delete \/runoob\/child\r\n$ get \/runoob\/child<\/pre>\n<\/p>\n","protected":false},"excerpt":{"rendered":"
zookeeper \u547d\u4ee4\u7528\u4e8e\u5728 zookeeper \u670d\u52a1\u4e0a\u6267\u884c\u64cd\u4f5c\u3002 \u9996\u5148\u6267\u884c\u547d\u4ee4\uff0c\u6253\u5f00\u65b0\u7684 session […]<\/p>\n","protected":false},"author":1470,"featured_media":209921,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-209901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/209901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=209901"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/209901\/revisions"}],"predecessor-version":[{"id":209923,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/209901\/revisions\/209923"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/209921"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=209901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=209901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=209901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}