wget http://mirror.bit.edu.cn/apac…
或者是这个地址:
wget https://downloads.apache.org/…
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