zookeeper+dubbo服务搭建
部署zookeeper服务
1.进入Apache ZooKeeper官方网站进行下载,https://zookeeper.apache.org/releases.html ()
直接下载地址
https://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.6.1/apache-zookeeper-3.6.1-bin.tar.gz
2.解压后在conf目录下 增加文件zoo.cfg
配置如下
# 心跳频率
tickTime=2000
# T初次同步的阶段(followers连接到leader的阶段),允许的时长initLimit*tickTime (tick数量),缺省:10
initLimit=10
# 允许followers同步到ZooKeeper的时长 syncLimit*tickTime(tick数量),缺省:5
syncLimit