Installation Environment:
Linux:centos6.4
jdk:1.7 or later
Zookeeper is a Java development that can run in Windows,Linux environments. The JDK needs to be installed first .
Installation steps:
First step: Install the JDK
Step Two: upload the Zookeeper package to the Linux system.
Step Three: Extract the compressed package
TAR-ZXVF zookeeper-3.4.6.tar.gz
Fourth Step: Enter the zookeeper-3.4.6 directory and create the data folder.
The fifth step: renaming zoo_sample.cfg to zoo.cfg
[Email protected] conf]# MV Zoo_sample.cfg zoo.cfg
Sixth step: Modify The Data property:datadir=/root/zookeeper-3.4.6/data
Seventh Step: Start Zookeeper
[[email protected] bin]#./zkserver.sh start
Close: [[email protected] bin]#./zkserver.sh stop
View Status: [Email protected] bin]#./zkserver.sh status
Note: You need to turn off the firewall.
Zookeeper installation in Linux