首页 > 其他 > 详细

centos 7 下载安装& 配置 zookeeper

时间:2021-08-29 20:56:26      阅读:34      评论:0      收藏:0      [点我收藏+]

一、下载

官方连接 https://archive.apache.org/dist/zookeeper/

yum install wget -y
wget https://archive.apache.org/dist/zookeeper/zookeeper-3.6.0/apache-zookeeper-3.6.0-bin.tar.gz

验证

[root@hostdare ~]# sha512sum apache-zookeeper-3.6.0-bin.tar.gz
862c96572bc085fd6ac5ad55f07b77b2ec78f7eb510b6c190c60a35cb13d15a7de9274fd48f96ae52d559e93691a57b5bc6e4cd43a4d66154983757623401dc7  apache-zookeeper-3.6.0-bin.tar.gz

解压

 tar zxvf  apache-zookeeper-3.6.0-bin.tar.gz && cd apache-zookeeper-3.6.0-bin

配置

cp conf/zoo_sample.cfg  conf/zoo.cfg

vi conf/zoo.cfg


dataDir=/tmp/zookeeper  #tmp为临时存储目录
dataDir=/var/lib/zookeeper  #修改为 <---

启动

[root@hostdare apache-zookeeper-3.6.0-bin]$ ./bin/zkServer.sh start
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /root/apache-zookeeper-3.6.0-bin/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED

停止

[root@hostdare apache-zookeeper-3.6.0-bin]$ ./bin/zkServer.sh stop

centos 7 下载安装& 配置 zookeeper

原文:https://www.cnblogs.com/xmc000/p/15201007.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!