前面一样的我就不写了,请先看这里zookeeper伪分布配置
1.接着那篇,修改drguo3的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 between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is
ZooKeeper集群配置实战:搭建完全分布式环境

本文介绍了如何进行ZooKeeper的完全分布式集群搭建,包括修改配置文件zoo.cfg,设置不同的服务器ID,创建data目录及myid文件,并手动启动所有节点。通过这些步骤,可以将ZooKeeper集群配置为一个由三个节点组成的分布式系统。
订阅专栏 解锁全文
473

被折叠的 条评论
为什么被折叠?



