下载地址:
http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz
[b] 安装
解压到指定目录下 D:\soft\zookeeper-3.4.8
修改zoo_sample.cfg 文件名(D:\soft\zookeeper-3.4.8\conf) 为 zoo.cfg
主要修改一下日志位置,具体配置文件如下:[/b]
# 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=D:\\zookeeper\\data
dataLogDir=D:\\zookeeper\\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
配置文件简单解析
1、tickTime:这个时间是作为 Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个 tickTime 时间就会发送一个心跳。
2、dataDir:顾名思义就是 Zookeeper 保存数据的目录,默认情况下,Zookeeper 将写数据的日志文件也保存在这个目录里。
3、dataLogDir:顾名思义就是 Zookeeper 保存日志文件的目录
4、clientPort:这个端口就是客户端连接 Zookeeper 服务器的端口,Zookeeper 会监听这个端口,接受客户端的访问请求。
启动:
进入到bin目录,并且启动zkServer.cmd,直接点击就可以启动:
- 大小: 79.4 KB
分享到:
相关推荐
Windows环境安装zookeeper
windows环境下zookeeper集群搭建,分别点击zookeeper目录下的bin\zkServer.cmd;java测试节点,删除和查询节点;
Windows下Zookeeper,官网原版下载,zk3.4.14,2019年1月官网发布。修复错误启动zkServer.cmd报错闪退,找不到zoo.cfg文件 支持win10,笔者就是win10,曾遇到无法加载主类问题(3.5.5版本)使用这个版本完美启动 ...
搭建dubbo+zookeeper+kafka+redis+mq分布式大数据所需要的zookeeper环境,windows和linux都可以使用
windows下开发测试zookeeper环境 在公司使用一年多了 推荐给大家
Windows 环境 为zookeeper和kafka配置开机自启动服务。
windows环境下安装zookeeper教程详解(单机版)
ZooKeeper分布式环境搭建详解 ZooKeeper是一个分布式协调服务,主要用于维护配置信息、命名、提供分布式同步和提供组服务等。在分布式系统中,ZooKeeper...JDK:ZooKeeper需要Java环境,确保已安装JDK 1.8或更高版本。
今天小编就为大家分享一篇关于windows下zookeeper配置java环境变量的方法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
这可以在ZooKeeper的bin目录下的zkEnv.sh(Linux)或zkEnv.cmd(Windows)文件中进行配置。 配置ZooKeeper集群: 进入ZooKeeper的conf目录,你会看到一个zoo_sample.cfg文件。复制这个文件并重命名为zoo.cfg,这是...
为了更快速的学习分布式开发,我们需要使用zookeeper伪分布式快速搭建模拟分布式环境
目前市面上功能最强,性能最好,数据最全的一款Zookeeper监控软件工具,该工具运行在.Net Framework4及上版本的Windows环境下。绿色软件,不需要安装,直接运行。
单机安装非常简单,只要获取到Zookeeper的压缩包并解压到某个目录如:/home/zookeeper-3.2.2下,Zookeeper的启动脚本在bin目录下,Linux下的启动脚本是zkServer.sh,在3.2.2这个版本Zookeeper没有提供windows下的...
本文不讲zookeeper集群原理,只谈部署步骤。 默认读者已对zookeeper有最基本的认知,纯粹作为部署笔记,方便回忆。...另外本文是基于Windows部署的,Linux的步骤是基本相同的(只是启动脚本位置不同)。
文档非常好,非常适合新手入门,而且在github上还有代码
zookeeper-3.7.0|windows伪分布集群|模拟5个节点|无需安装即可即启动伪分布集群|独立制作|全网首发|别无他处 解压即用,无需任何配置,无需创建文件夹,只要本机的jdk环境正常. 并且制作了一键启动服务脚本和一键连接...
在学习分布式集群的时候发现好多文档有问题,不能完整的部署环境,决定自己写一个大杂烩 Mysql、Redis、Zookeeper、Nginx、FastDFS集合
windows版本 zookeeper配置说明,修改路径后可直接使用
编程环境和软件工具安装手册,各种环境安装,包括Linux及windows系统,Git⼯具,JDK(Java环境),Node环境,Python环境,Maven项⽬构建和管理⼯具,MySQL数据库部署和安装,Redis缓存安装部署,消息队列RabbitMQ...
简介:介绍如何在windows和linux环境下面安装zookeeper,方便开发调试以及正式部署下载zookeeper https://zookeeper.a