Linux zookeeper 安装
1. 下载
http://www.apache.org/dyn/closer.cgi/zookeeper/
官网推荐的路径,下载的速度快
2. 安装
tar -zxf zookeeper-3.4.6.tar.gz
cd zookeeper-3.4.14
mkdir data
3. 修改配置
mv zoo_sample.cfg zoo.cfg
vi conf/zoo.cfg
tickTime = 2000
dataDir = /zookeeper的路径/data
clientPort = 2181
initLimit = 5
syncLimit = 2
4. 启动ZooKeeper服务器
cd bin
sh zkServer.sh start
5. 启动CLI
cd bin
sh zkCki.sh
6. 停止ZooKeeper服务器
cd bin
sh zkServer.sh stop