环境:
1.VMware® Workstation 12 Pro
2.CentOS7
3.zookeeper-3.4.6
步骤:
1、下载zookeeper-3.4.6.tar.pz
2、tar -zxvf zookeeper-3.4.6.tar.pz
3、cd zookeeper-3.4.6/conf
4、cp zoo_sample.cfg zoo.cfg
5、
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/usr/local/src/zookeeper-3.4.5
# the port at which the clients will connect
clientPort=2181
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.a