版本:3.5.6
安装包:apache-zookeeper-3.5.6-bin.tar.gz
下载地址:http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.5.6/apache-zookeeper-3.5.6-bin.tar.gz
一、单机版安装
cd /data/soft
tar xzvf apache-zookeeper-3.5.6-bin.tar.gz
mv apache-zookeeper-3.5.6-bin ../app/
cd ../app/apache-zookeeper-3.5.6-bin/
cp conf/zoo_sample.cfg conf/zoo.cfg
启动:bin/zkServer.sh start
停止:bin/zkServer.sh stop
查看是否启动成功:ps -ef|grep zookeeper
二、集群部署
部署设备IP:
192.10.1.11
192.10.1.12
192.10.1.13
vi conf/zoo.cfg
dataDir=/roywi