[root@hadoop1 zzzz]# mv zookeeper-3.4.8 zookeeper1
[root@hadoop1 zzzz]# ls
zookeeper1 zookeeper-3.4.8.tar.gz
[root@hadoop1 zzzz]# ls
zookeeper1 zookeeper-3.4.8.tar.gz
[root@hadoop1 zzzz]# cd zookeeper1/
[root@hadoop1 zookeeper1]# ls
bin CHANGES.txt contrib docs ivy.xml LICENSE.txt README_packaging.txt recipes zookeeper-3.4.8.jar zookeeper-3.4.8.jar.md5
build.xml conf dist-maven ivysettings.xml lib NOTICE.txt README.txt src zookeeper-3.4.8.jar.asc zookeeper-3.4.8.jar.sha1
[root@hadoop1 zookeeper1]# mkdir data
[root@hadoop1 zookeeper1]# mkdir dataLog
[root@hadoop1 zookeeper1]# ls
bin CHANGES.txt contrib dataLog docs ivy.xml LICENSE.txt README_packaging.txt recipes zookeeper-3.4.8.jar zookeeper-3.4.8.jar.md5
build.xml conf data dist-maven ivysettings.xml lib NOTICE.txt README.txt src zookeeper-3.4.8.jar.asc zookeeper-3.4.8.jar.sha1
[root@hadoop1 zookeeper1]# cd conf/
[root@hadoop1 conf]# ls
configuration.xsl log4j.properties zoo_sample.cfg
[root@hadoop1 conf]# mv zoo_sample.cfg zoo.cfg
[root@hadoop1 conf]# ls
configuration.xsl log4j.properties zoo.cfg
[root@hadoop1 conf]# vi zoo.cfg
[root@hadoop1 conf]# pwd
/home/hadoop1/software/zzzz/zookeeper1/conf
[root@hadoop1 conf]# vi zoo.cfg
[root@hadoop1 conf]# cd ..
[root@hadoop1 zookeeper1]# ls
bin CHANGES.txt contrib dataLog docs ivy.xml LICENSE.txt README_packaging.txt recipes zookeeper-3.4.8.jar zookeeper-3.4.8.jar.md5
build.xml conf data dist-maven ivysettings.xml lib NOTICE.txt README.txt src zookeeper-3.4.8.jar.asc zookeeper-3.4.8.jar.sha1
[root@hadoop1 zookeeper1]# cd ..
[root@hadoop1 zzzz]# ls
zookeeper1 zookeeper-3.4.8.tar.gz
[root@hadoop1 zzzz]# cp -r zookeeper1/ zookeeper2
[root@hadoop1 zzzz]# cp -r zookeeper1/ zookeeper3
[root@hadoop1 zzzz]# cp -r zookeeper1/ zookeeper4
[root@hadoop1 zzzz]# ls
zookeeper1 zookeeper2 zookeeper3 zookeeper-3.4.8.tar.gz zookeeper4
[root@hadoop1 zzzz]# cd zookeeper1/
[root@hadoop1 zookeeper1]# ./bin/zkServer.sh start
ZooKeeper JMX enabled by default
Using config: /home/hadoop1/software/zzzz/zookeeper1/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@hadoop1 zookeeper1]# ./bin/zkCli.sh -server 192.168.102.228:2181
Connecting to 192.168.102.228:2181
2016-04-08 00:06:41,616 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.8--1, built on 02/06/2016 03:18 GMT
2016-04-08 00:06:41,626 [myid:] - INFO [main:Environment@100] - Client environment:host.name=hadoop1
2016-04-08 00:06:41,626 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.8.0_73
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/home/hadoop1/software/jdk1.8.0_73/jre
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/home/hadoop1/software/zzzz/zookeeper1/bin/../build/classes:/home/hadoop1/software/zzzz/zookeeper1/bin/../build/lib/*.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../lib/slf4j-log4j12-1.6.1.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../lib/slf4j-api-1.6.1.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../lib/netty-3.7.0.Final.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../lib/log4j-1.2.16.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../lib/jline-0.9.94.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../zookeeper-3.4.8.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../src/java/lib/*.jar:/home/hadoop1/software/zzzz/zookeeper1/bin/../conf:.:/home/hadoop1/software/jdk1.8.0_73/lib:/home/hadoop1/software/jdk1.8.0_73/jre/lib
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA>
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux
2016-04-08 00:06:41,628 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=amd64
2016-04-08 00:06:41,629 [myid:] - INFO [main:Environment@100] - Client environment:os.version=3.10.0-229.el7.x86_64
2016-04-08 00:06:41,629 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root
2016-04-08 00:06:41,629 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root
2016-04-08 00:06:41,629 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/home/hadoop1/software/zzzz/zookeeper1
2016-04-08 00:06:41,630 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=192.168.102.228:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@506c589e
Welcome to ZooKeeper!