一、前置条件
安装JDK
二、下载地址
apache镜像:http://mirror.bit.edu.cn/apache/zookeeper/
备注:下载bin/版本
三、安装
1.解压
sudo tar -zxf apache-zookeeper-3.5.5-bin.tar.gz -C /usr/local/
2.修改配置文件
cd /usr/local/apache-zookeeper-3.5.5-bin/conf/
mv zoo_sample.cfg zoo.cfg
vi zoo.cfg
内容如下:
# 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/apache-zookeeper-3.5.5-bin/data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle