cd /usr/local
mkdir zookeeper
cd /usr/local/zookeeper
wget https://mirrors.aliyun.com/apache/zookeeper/zookeeper-3.9.1/apache-zookeeper-3.9.1-bin.tar.gz
tar -xzvf apache-zookeeper-3.9.1-bin.tar.gz
cd apache-zookeeper-3.9.1-bin/conf/
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg
dataDir=/usr/local/zookeeper/apache-zookeeper-3.9.1-bin/data
dataLogDir=/usr/local/zookeeper/apache-zookeeper-3.9.1-bin/logs
?
?
vi /etc/profile
export ZOOKEEPER_HOME=/usr/local/zookeeper/apache-zookeeper-3.9.1-bin
export PATH=$ZOOKEEPER_HOME/bin:$PATH
?
source /etc/profile
?