Zookeeper的安装和配置
2016-03-11 00:00
513 查看
摘要: 简单记录Zookeeper的安装和配置
一、Windows开发环境
Zookeeper的安装和配置:
1.登录Zookeeper的官网,下载Zookeeper的安装包(我使用的是3.4.8的稳定版本),然后直接解压即可
http://zookeeper.apache.org/
2.根据Zookeeper的文档进行Zookeeper的配置,创建zoo.cfg文件,具体内容如下:
3.在CMD中启动Zookeeper服务
一、Windows开发环境
Zookeeper的安装和配置:
1.登录Zookeeper的官网,下载Zookeeper的安装包(我使用的是3.4.8的稳定版本),然后直接解压即可
http://zookeeper.apache.org/
2.根据Zookeeper的文档进行Zookeeper的配置,创建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 an acknowledgement syncLimit=5 # the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. # dataDir需要根据自己的情况配置 dataDir=D:\zookeeper\data # 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
3.在CMD中启动Zookeeper服务
D:\zookeeper\bin\zkServer.cmd
相关文章推荐
- java对世界各个时区(TimeZone)的通用转换处理方法(转载)
- java-注解annotation
- java-模拟tomcat服务器
- java-用HttpURLConnection发送Http请求.
- java-WEB中的监听器Lisener
- Android IPC进程间通讯机制
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- 介绍一款信息管理系统的开源框架---jeecg
- 聚类算法之kmeans算法java版本
- java实现 PageRank算法
- PropertyChangeListener简单理解
- c++11 + SDL2 + ffmpeg +OpenAL + java = Android播放器
- 插入排序
- 冒泡排序
- 堆排序
- 快速排序
- 二叉查找树