centos单机安装zookeeper

第一步:下载zookeeper

http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.12/


第二步:复制进centos中

放在/usr/zookeeper文件夹中

第三步:解压

[root@localhost zookeeper]# tar -zxvf zookeeper-3.4.12.tar.gz 

第四步:配置

进入zookeeper的conf目录下,找到zoo_sample.cfg文件

[root@localhost conf]# cp ./zoo_sample.cfg zoo.cfg

复制一份配置文件并改名,然后输入配置

tickTime=2000
initLimit=10
syncLimit=5
dataDir=/usr/zookeeper/zookeeper-3.4.12/data

clientPort=2181

第五步:开启

cd到zookeeper-3.4.12的bin目录下

[root@localhost bin]# ./zkServer.sh start

扫描二维码关注公众号,回复: 1823865 查看本文章

出现如下字样说明已启动

ZooKeeper JMX enabled by default
Using config: /usr/zookeeper/zookeeper-3.4.12/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED

猜你喜欢

转载自blog.csdn.net/qq_31615049/article/details/80780069
今日推荐