标签:server zook tool bsp zookeeper 使用 files delete 简单
1.下载zookeeper https://www.apache.org/dyn/closer.cgi/zookeeper/2. 配置 zoo.cfg
添加配置如下(windows配置环境)
tickTime=2000 dataDir=E:\\ProgramFiles\\zookeeper-3.4.10\\data clientPort=2181
3.单机启动zookeeper zkServer.cmd
4.使用客户端连接zookeeper zkCli.cmd -server 127.0.0.1:2181
通过客户端实现3个简单操作
create /zk zk-data Created /zk get /zk data cZxid = 0x6 ctime = Thu Feb 08 15:51:23 CST 2018 mZxid = 0x6 mtime = Thu Feb 08 15:51:23 CST 2018 pZxid = 0x6 cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x0 dataLength = 4 numChildren = 0 delete /zk
标签:server zook tool bsp zookeeper 使用 files delete 简单
原文地址:http://blog.51cto.com/antlove/2070234