Linux 安装 zookeeper 下载地址为: https://zookeeper.apache.org/releases.html。
打开网址 https://www.apache.org/dyn/closer.lua/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz,看到如下界面:
选择一个下载地址,使用 wget 命令下载并安装: $ wget https://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz $ tar -zxvf zookeeper-3.4.14.tar.gz $ cd zookeeper-3.4.14 $ cd conf/ $ cp zoo_sample.cfg zoo.cfg $ cd .. $ cd bin/ $ sh zkServer.sh start
启动客户端: $ sh zkCli.sh 帮助命令: 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 addauth scheme auth quit getAcl path close connect host:port
Windows 下安装 zookeeper 下载地址为: https://zookeeper.apache.org/releases.html。 选择一个地址点击版本下载: