zookeeper 的安装(for mac)
通过官网http://zookeeper.apache.org/下载
重命名为zookeeper
zookeeper的配置
1.进入安装路径conf目录,将zoo_sample.cfg修改为zoo.cfg,并对核心参数配置
# The number of milliseconds of each tick
# zk服务器的心跳时间
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
#投票选举新Leader的初始化时间
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