1. Upload, Unzip zookeeper
TAR-ZXVF zookeeper-3.4.7.tar.gz
2./home/hello/app/zookeeper-3.4.7/conf Adding a zoo.cfg configuration file
MV Zoo_sample.cfg Zoo.cfg
3./home/hello/app/zookeeper-3.4.7 Creating the Zdata directory
4. Modify the configuration file (zoo.cfg)
A.datadir=/home/hello/app/zookeeper-3.4.7/zdata
b.server.1=node1:2888:3888
server.2=node2:2888:3888
server.3=node3:2888:3888
5./home/hello/app/zookeeper-3.4.7/zdata Creating a myID file
6. Copy the configured zookeeper-3.4.7 to the other nodes
Scp-r zookeeper-3.4.7/[Email protected]:/home/hello/app/
Scp-r zookeeper-3.4.7/[Email protected]:/home/hello/app/
7. Be sure to modify the contents of myID for server on Node1,node2,node3. N in N
8. Start the node on NODE1,NODE2,NODE3, respectively
A. Start the node./zkserver.sh Start
B. View the node status./ZKSERVER.SH Status
B. View Help./zkserver.sh--help
Zookeeper distributed Deployment (ZOOKEEPER-3.4.7.TAR.GZ)