1 下载
2 解压
tar -zxvf apache-zookeeper-3.6.3-bin.tar.gz
3 配置
cd conf
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg
修改Zookeeper保存数据的目录,dataDir:
dataDir=/opt/zookeeper/data
启动
zkServer.sh start
tar -zxvf apache-zookeeper-3.6.3-bin.tar.gz
cd conf
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg
修改Zookeeper保存数据的目录,dataDir:
dataDir=/opt/zookeeper/data
zkServer.sh start