前面一样的我就不写了,请先看这里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