zookeeper 安装之windows环境安装

1.安装jdk

2.下载zookeeper

地址:http://zookeeper.apache.org
版本:zookeeper-3.4.10

3.解压zookeeper-3.4.10至E:\using\zookeeper-3.4.10

4.在E:\using\zookeeper-3.4.10 新建data及log目录。

5.安装单击模式

至E:\using\zookeeper-3.4.10\conf 复制 zoo_sample.cfg 并粘贴到当前目录下,命名zoo.cfg.

6.zoo.cfg 配置修改

dataDir与dataLogDir配置修改

# 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=/tmp/zookeeper
dataLogDir=E:\\using\\zookeeper-3.4.10\\data
dataDir=E:\\using\\zookeeper-3.4.10\\log
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

7.cmd命令下进入D:\machine\zookeeper-3.4.6\bin目录下运行zkserver.cmd.如下图所示:

zkserver.cmd这个脚本中会启动一个java进程

这里写图片描述

这里写图片描述

8.验证是否安装启动成功

8.1.使用jps -l –v 命令

这里写图片描述

8.2.动客户端连接一下

zkCli 127.0.0.1:2181

这里写图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东山富哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值