wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.5.9/apache-zookeeper-3.5.9-bin.tar.gz
tar zxf apache-zookeeper-3.5.9-bin.tar.gz -C /home

cd /home
mv apache-zookeeper-3.5.9-bin zookeeper

cd /home/zookeeper/conf
cp zoo_sample.cfg zoo.cfg
vi zoo.cfg
修改zoo.cfg配置文件为:
dataDir=/home/zookeeper/data
dataLogDir=/home/zookeeper/logs

cd /home/zookeeper/
mkdir data
mkdir logs

sh /home/zookeeper/bin/zkServer.sh start