zoukankan
html css js c++ java
zookeeper 安装和配置解读
1.jdk 自行安装配置
2.网上下载
https://zookeeper.apache.org/releases.html
3.rz上传到虚拟机
4.tar -zxvf zookeeper-3.4.14.tar.gz 解压
5.rm -rf zookeeper-3.4.14.tar.gz 删除压缩包
6.在zookeeper-3.4.14(刚刚解压的zookeeper)文件下 创建一个存储文件夹 mkdir zkData
7.mv zoo_sample.cfg zoo.cfg 改文件名 这个就是zookeeper的配置文件zoo.cfg
7.vi zookeeper-3.4.14/conf/zoo.cfg 修改配置文件dataDir=/opt/software/zookeeper-3.4.14/zkData 这个就是刚刚创建的文件夹
8.启动server[root@lyx-61 zookeeper-3.4.14]# bin/zkServer.sh start 在zookeeper项目下 输入命令行bin/zkServer.sh start
9.启动client[root@lyx-61 zookeeper-3.4.14]# bin/zkCli.sh 在zookeeper项目下 输入命令行bin/zkCli.sh
10 在客户端输入ls / 查看节点
11.退出客户端 quit
12.退出服务端 [root@lyx-61 zookeeper-3.4.14]# bin/zkServer.sh stop
.zoo.cfg 文件配置
tickTime=2000 通信心跳数 单位毫秒 zookeeper使用的时间单位
initLimit=10 zookeeper集群的follower和leader初始连接时的连接时间 超时就连不上 这里就是2000毫秒*10
syncLimit=5 zookeeper集群的follower和leader最大响应时间 如果超过时间5*2000ms 就认为该follower死亡 就会从列表删除该follower
dataDir 保存zookeeper中的数据
clientPort 客户端连接服务器的端口
查看全文
相关阅读:
c函数文件读写
ubuntu server telnet 服务(转)
如何使用MFC和类型库创建自动化项目
认识配置设置文件(INI与XML)
fopen时w与wb的区别
VM连接 的三种方式
UBUNTU 配置WEB服务器,PHP,MYSQL,PHPADMIN,APARCHE .
VC++多线程编程
ubuntu server 安装
c++ static 关键字
原文地址:https://www.cnblogs.com/lyx666/p/12753923.html
最新文章
二叉树节点数据结构练习 5 二叉树的建立 遍历
置顶算法[置顶] 快排
充电clientandroid电池(五):电池 充电IC(PM2301)驱动分析篇
类日期java转换日期的工具类
滚动停止jquery 文本上下无缝滚动,鼠标放上去就停止
编译项目iOS 协同开发 问题
设置文字QT按钮包含图片与文字,以及鼠标停留备注显示,和sheetstyle风格设置。
长城天骄《沁园春·雪》
属性名称T4模版生成SpringMVC构造REST代码:第三篇 用T4模版生成POCO类代码
位置堆排序[置顶] 堆的构建与堆排序
热门文章
OpenEmbedded环境搭建(ubuntu)
交叉编译xorg
音频设备的三种硬件接口
Scratchbox2安装配置
opengl 帧率
嵌入式 user interface
ubuntu 快速设置
vmware 拷贝后网卡名变掉
ECMAScript 语法 笔记
Qt主窗口没有最小化,最大化按钮且最大化显示
Copyright © 2011-2022 走看看