1. Download: http://apache.fayea.com/zookeeper/
2, check the environment variables (need to make sure to configure the environment variable):
java -version
3, installation configuration:
(1) extracting
tar -zxvf apache-zookeeper-3.5.6-bin.tar.gz
(2) modify the configuration file
1) In the apache-zookeeper-3.5.6-bin directory created: data directory, logs directory, dataDir directory
mkdir data
mkdir logs
mkdir dataDir
2) enter the conf folder, copy zoo_sample.cfg to zoo.cfg
3) Modify the dataDir zoo.cfg
4, the command:
(1) Start:
Go to the bin directory execute: ./ zkServer.sh start
(2) View Status:
1) The first embodiment: ./ zkServer.sh status
2) The second embodiment: jps or jps / m
3) ps -ef | grip QuorumPeerMain
(3) Restart: ./ zkServer.sh restart
(3) Stop: ./ zkServer.sh stop