ZooKeeper 安装与部署
一、下载
下载地址:http://mirror.bit.edu.cn/apache/zookeeper/stable/apache-zookeeper-3.5.5-bin.tar.gz
二、安装
直接解压到期望文件夹。
三、配置
在解压后的文件夹中添加两个目录,data和logs,用于存储数据与日志。
文件夹conf中,存放配置文件,现有一个名为zoo_sample.cfg的文件,这是示例配置文件。
新建配置文件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=E:\\environment\\zookeeper\\apache-zookeeper-3.5.5\\data
dataLogDir=E:\\environment\\zookeeper\\apache-zookeeper-3.5.5\\logs
# the port at which the clients will connect
clientPort=2181
四、启动
打开命令提示符,进入bin目录,输入zkServer启动。
E:\environment\zookeeper\apache-zookeeper-3.5.5\bin>zkServerE:\environment\zookeeper\apache-zookeeper-3.5.5\bin>call "C:\Program Files\Java\jdk1.8.0_181"\bin\java "-Dzookeeper.log.dir=E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\logs" "-Dzookeeper.root.logger=INFO,CONSOLE" "-Dzookeeper.log.file=zookeeper-Kuningasic-server-DESKTOP-KJCEOIF.log" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:OnOutOfMemoryError=cmd /c taskkill /pid %%p /t /f" -cp "E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\build\classes;E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\build\lib\*;E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\*;E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\lib\*;E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\conf\zoo.cfg" 2019-06-12 20:56:27,191 [myid:] - INFO [main:QuorumPeerConfig@133] - Reading configuration from: E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\conf\zoo.cfg 2019-06-12 20:56:27,201 [myid:] - INFO [main:QuorumPeerConfig@385] - clientPortAddress is 0.0.0.0/0.0.0.0:2181 2019-06-12 20:56:27,201 [myid:] - INFO [main:QuorumPeerConfig@389] - secureClientPort is not set 2019-06-12 20:56:27,204 [myid:] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 2019-06-12 20:56:27,206 [myid:] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 2019-06-12 20:56:27,206 [myid:] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled. 2019-06-12 20:56:27,206 [myid:] - WARN [main:QuorumPeerMain@125] - Either no config or no quorum defined in config, running in standalone mode 2019-06-12 20:56:27,208 [myid:] - INFO [main:ManagedUtil@46] - Log4j found with jmx enabled. 2019-06-12 20:56:27,286 [myid:] - INFO [main:QuorumPeerConfig@133] - Reading configuration from: E:\environment\zookeeper\apache-zookeeper-3.5.5\bin\..\conf\zoo.cfg 2019-06-12 20:56:27,286 [myid:] - INFO [main:QuorumPeerConfig@385] - clientPortAddress is 0.0.0.0/0.0.0.0:2181 2019-06-12 20:56:27,287 [myid:] - INFO [main:QuorumPeerConfig@389] - secureClientPort is not set 2019-06-12 20:56:27,287 [myid:] - INFO [main:ZooKeeperServerMain@117] - Starting server
转载于:https://www.cnblogs.com/Currention/p/11012702.html
ZooKeeper 安装与部署相关推荐
- ZooKeeper的安装与部署
本文讲述如何安装和部署ZooKeeper. 一.系统要求 ZooKeeper可以运行在多种系统平台上面,表1展示了zk支持的系统平台,以及在该平台上是否支持开发环境或者生产环境. 表1:ZooKeep ...
- Linux下搭建 kafka集群 + zookeeper集群部署 安装、启动、停止
文章目录 一.环境部署总览 1. 软件版本选型 2. 服务器软件部署总览 二.软件部署手册 2.1. JDK 2.2. kafka 2.3. Kafka Eagle 2.4. mysql 2.5. z ...
- ZooKeeper的安装及部署
Zookeeper的安装部署 2.1 Zookeeper的安装 Zookeeper安装前需要安装好 JDK.配置好环境变量. 下载:zookeeper-3.4.5-cdh5.7.0.tar.gz 解压 ...
- Zookeeper安装部署调试命令
Zookeeper安装部署调试命令 ZooKeeper 常用四字命令: 下载地址: http://www.apache.org/dyn/closer.cgi/zookeeper/ 我选用清华的镜像 h ...
- 安装和部署ZooKeeper。
本文讲述如何安装和部署ZooKeeper. 一.系统要求 ZooKeeper可以运行在多种系统平台上面,表1展示了zk支持的系统平台,以及在该平台上是否支持开发环境或者生产环境. 表1:ZooKeep ...
- Dubbo:Zookeeper安装+Dubbo管理控制台部署
Zookeeper安装+Dubbo管理控制台部署 Dubbo:一个分布式的RPC框架 RPC: 远程过程调用 RPC:Registry Provider Consumer Dubbo官方建议使 ...
- Zookeeper 安装和配置
Zookeeper 安装和配置01 ZooKeeper的安装与部署02 转载于:https://www.cnblogs.com/hfultrastrong/p/8414587.html
- ZooKeeper学习第二期--ZooKeeper安装配置
一.Zookeeper的搭建方式 Zookeeper安装方式有三种,单机模式和集群模式以及伪集群模式. ■ 单机模式:Zookeeper只运行在一台服务器上,适合测试环境: ■ 伪集群模式:就是在一台 ...
- Zookeeper 安装
Zookeeper 安装 由 xpproen 创建,youj 最后一次修改 2016-12-27 在安装ZooKeeper之前,请确保你的系统是在以下任一操作系统上运行: 任意Linux OS - 支 ...
- ZooKeeper安装配置
为什么80%的码农都做不了架构师?>>> 一.Zookeeper的搭建方式 Zookeeper安装方式有三种,单机模式和集群模式以及伪集群模式. ■ 单机模式:Zookeepe ...
最新文章
- 对 WEB 标准以及 W3C 的理解与认识?
- python center函数_python pandas移动窗口函数rolling的用法
- OpenCascade Primitives BRep-Cylinder
- 剑指offer07.重建二叉树
- java biginteger 运算_Java大数字运算之BigInteger 原创
- 基于tomcat5.5的数据库连接池环境设置(省的以后找系列)
- ROS入门(一) 文件结构篇
- 本科自考计算机专业有哪些学校,自考本科计算机专业要学什么?广东有哪些学校可以考?...
- autocoder自动代码生成器_Spring Boot 集成MyBatis Plus代码生成器
- 黑客工具之NBSI介绍
- JavaBean对象转Map对象
- 联想服务器bios中文显示,联想bios怎么设置中文显示
- 滤波笔记四:扩展卡尔曼滤波
- visio中的公式在转换pdf后公式糊掉;word导出pdf时visio丢失模块字体
- 计算机win7如何连接wifi网络,细说win7怎么共享wifi
- 深入理解搜索引擎-排序算法
- #navigation
- Unity3D教程:简单的碰撞检测
- 老码农眼中的大模型(LLM)
- 什么是SQL触发器?SQL触发器是什么意思?
热门文章
- 阶段3 1.Mybatis_05.使用Mybatis完成CRUD_4 Mybatis的CRUD-查询一个和模糊查询
- 阶段1 语言基础+高级_1-3-Java语言高级_07-网络编程_第2节 TCP协议_2_TCP通信的概述(下)...
- 网络编程基础,传输层服务
- DAG最小可重路径覆盖or最长反链的一种做法
- vue实用组件——表格
- 实验四【bx】和loop的使用
- Nginx 反向代理解决浏览器跨域问题
- Codeforces Round #580 (Div. 1)(CF1205)A-E
- Linux下在Android模拟器中使用SD 卡的操作步骤
- jq 克隆 移除table