1.首先安装zookeeper机群: 修改其config目录下的zoo.cfg,主要修改dataDir、server.A=B:C:D参数即可; 然后在dataDir下创建myid文件,内容为当前节点的id;
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10