First step: Download the installation package http://download.csdn.net/download/chao8672/9963465
Step two: Copy to Linux server and unzip
-ZXVF zookeeper-3.3. 6. tar.gz
Step three: Create DataDir and Datalogdir
# mkdir DataDir
#mkdir LogDir
Fourth step: Copy Zoo_sample.cfg to zoo.cfg and modify the DataDir and logdir paths where the paths are created in the third step
# CP Zoo_sample.cfg Zoo.cfg
The following two variables are modified in the ZOO.CFG configuration file:
Datadir=/app/zookeeper/zookeeper-3.3.6/datadir
Datalogdir=/app/zookeeper/zookeeper-3.3.6/logdir
Fifth Step: Configure Linux environment variables
# export zookeeper_install=/app/zookeeper/zookeeper-3.3. 6/# export PATH= $PATH: $ZOOKEEPER _install/bin
Sixth step: Start and view the running status
-ef| grep zookeeper mode 3:# zkserver.sh status
Very simple!
Install Zookeeper on "Zookeeper" Linux (single node)