[root@master ~]# mkdir /usr/zookeeper
[root@master ~]# tar -zxf zookeeper-3.4.10.tar.gz -C /usr/zookeeper
[root@master ~]# cd zookeeper-3.4.10/conf/
[root@master conf]# cp zoo_sample.cfg zoo.cfg
dataDir=/usr/zookeeper/zookeeper-3.4.10/data
dataLogDir=//usr/zookeeper/zookeeper-3.4.10/logs
[root@master ~]# vi /etc/profile
export ZOOKEEPER_HOME=/usr/zookeeper/zookeeper-3.4.10/
export PATH=$ZOOKEEPER_HOME/bin:$PATH
export PATH
[root@master ~]# source /etc/profile
[root@master ~]# cd /usr/zookeeper/zookeeper-3.4.10/
[root@master bin]# zkServer.sh start
[root@master bin]# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /usr/zookeeper/zookeeper-3.4.9/bin/…/conf/zoo.cfg
Starting zookeeper … STARTED
zkServer.sh stop
ZooKeeper JMX enabled by default
Using config: /usr/zookeeper/zookeeper-3.4.10/bin/…/conf/zoo.cfg
Stopping zookeeper … STOPPED