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