说明 | 地址 |
---|---|
zip | http://mirror.bit.edu.cn/apache/zookeeper/stable/apache-zookeeper-3.5.5-bin.tar.gz |
命令下载 | wget http://mirror.bit.edu.cn/apache/zookeeper/stable/apache-zookeeper-3.5.5-bin.tar.gz |
http://archive.apache.org/dist/zookeeper/zookeeper-3.5.7/apache-zookeeper-3.5.7-bin.tar.gz
#解压
tar -zxf apache-zookeeper-3.5.5-bin.tar.gz
#重命名
mv apache-zookeeper-3.5.5-bin zookeeper01
#进入conf目录
cd zookeeper01/conf/
#重命名并备份zoo.cfg
cp zoo_sample.cfg zoo.cfg
#进入zk的bin目录
cd /root/zookeeper01/bin
#启动zk
./zkServer.sh start
#查看zk启动状态
./zkServer.sh status