wget https://mirrors.bfsu.edu.cn/apache/zookeeper/zookeeper-3.6.1/apache-zookeeper-3.6.1-bin.tar.gz
tar -zxvf apache-zookeeper-3.6.1-bin.tar.gz -C /usr/local/
mkdir data logs
cp conf/zoo_sample.cfg conf/zoo.cfg
dataDir=../data dataLogDir=../logs
bin/zkServer.sh start
bin/zkServer.sh status
tail -20f logs/zookeeper-root-server-localhost.localdomain.out
原文:https://www.cnblogs.com/JaminYe/p/13584550.html