一、参考
elasticsearch 学习系列目录——更新 ing
ZooKeeper Getting Started Guide
二、装置运行
2.1 下载解压 tar
包
Apache ZooKeeper™ Releases
/Users/yz/work/env/zk
tar -zvxf apache-zookeeper-3.7.0-bin.tar.gz
cd apache-zookeeper-3.7.0-bin
2.2 运行zkServer
启动之前须要配置文件 zoo.cfg
cd /Users/yz/work/env/zk/apache-zookeeper-3.7.0-bin
cp zoo_sample.cfg zoo.cfg
./zkCli.sh start
2.3 运行zkCli