centos7.9配置zookeeper

一 download zookeeper

https://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gzcentos7.9配置zookeeperhttps://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz

二 配置

1解压缩至目标位置

tar -zxvf apache-zookeeper-3.7.0.tar.gz -C /usr/local/***** 

2配置(在hadoop102上)

cd /usr/local/my_server/apache-zookeeper-3.7/
mkdir zkdatas/
cd conf/

cp zoo_sample.cfg zoo.cfg
vi zoo.cfg

dataDir  改为自己的zookeeper/zkdatas绝对路径
#25行去掉注释  
上一篇:ZooKeeper源码分析十之集群启动


下一篇:cf996,特别的分数,记录一下