(1)解压并安装
tar -zxvf zookeeper-3.4.14.tar.gz -C /opt/
(2)修改配置文件
cd /opt/zookeeper-3.4.14/conf
scp zoo_sample.cfg zoo.cfg
vi zoo.cfg
dataDir=/opt/zookeeper-3.4.14/zkdata
dataLogDir=/opt/zookeeper-3.4.14/log
server.1=master:2888:3888
server.2=slaver01:2888:3888
server.3=slaver02:2888:3888
来源:https://www.cnblogs.com/Louis-Victory/p/12366476.html