赞
踩
本文为Zookeeper伪集群搭建,步骤如下
1、下载apache-zookeeper-3.6.2-bin.tar.gz安装包。放上连接:Zookeeper下载地址
2、上传到服务器并解压: tar -zxvf apache-zookeeper-3.6.2-bin.tar.gz
3、创建配置文件:进入apache-zookeeper-3.6.2-bin/conf,复制zoo_sample.cfg为zoo.cfg(单机启动配置)
其内容主要如下:
# The number of milliseconds of each tick 心跳评率 默认为2s
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take follower连接leader时,心跳次数 ,即2*10=20s,在20s以后都无法检测到正常连接,视为连接失败
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement leader和follower进行心跳检测的延时, 2*5=10
syncLimit=5
# the directory wher
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。