zookeeper 安装
1.下载zookeeper
官方下载页面:http://zookeeper.apache.org/releases.html#download
国内的下载地址:https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/
2. 解压zookeeper
terry@terry-VirtualBox:/opt/bigdata_platform$ tar -xvf ../source/zookeeper-3.4.10.tar.gz -C .
3:创建配置文件
修改conf/zoo.cfg文件
terry$ cp zoo_sample.cfg zoo.cfg
terry$ vi zoo.cfg
tickTime=2000
dataDir=/opt/bigdata_platform/zookeeper-3.4.10/data
clientPort=2181
initLimit=5
syncLimit=2
4. 启动zookeeper服务器
bin/zkServer.sh start
4.启动zookeeper 客户端
bin/zkCli.sh
4.停止服务器
bin/zkServer.sh stop
本文详细介绍Zookeeper的安装步骤,包括从官方网站或清华大学镜像站下载,解压缩,配置zoo.cfg文件,以及如何启动和停止Zookeeper服务器。适合初学者快速上手。
1998

被折叠的 条评论
为什么被折叠?



