zookeeper 安装

下载

http://mirrors.hust.edu.cn/apache/zookeeper/

单机版部署

解压压缩包
conf文件夹新增 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 anacknowledgement
syncLimit=5
# the directory where the snapshot isstored.  //镜像数据位置
dataDir=D:\\data\\zookeeper
#日志位置
dataLogDir=D:\\logs\\zookeeper
# the port at which the clients willconnect  客户端连接的端口
clientPort=21810

启动

bin文件夹内 zkServer.cmdzkServer.sh

你可能感兴趣的:(zookeeper 安装)