前面一样的我就不写了,请先看这里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 stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
#修改这个目录,之后这个目录得手动建
dataDir=/opt/zookeeper-3.4.8/data
# the port at which