Zookeeper-3.4.13集群配置

本文档详细介绍了如何从下载Zookeeper-3.4.13开始,到解压、配置、创建目录、同步文件、设置属主,直至启动Zookeeper集群的全过程。通过配置zoo.cfg文件,设置myid,以及在多台机器间同步,最终实现Zookeeper集群的搭建,并通过zkServer.sh status和jps命令验证集群状态。
摘要由CSDN通过智能技术生成

一、下载Zookeeper-3.4.13

官网下载地址
在这里插入图片描述

二、解压Zookeeper-3.4.13到/usr/local/,并该名为zookeeper

三、配置Zookeeper

1.复制模版文件zoo_sample.cfg为zoo.cfg

cp /usr/local/zookeeper/conf/zoo_sample.cfg  /usr/local/zookeeper/conf/zoo.cfg

将zoo_sample.cfg 复制一份为zoo.cfg

2.修改配置文件zoo.cfg

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass be
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值