Zookeeper简单应用(单机)
来源:互联网 发布:2016年破获的网络诈骗 编辑:程序博客网 时间:2024/06/03 14:28
简单的zookeeper单机安装部署,类似安装部署手册吧~
以sthe账户为例安装zookeeper
1. zookeeper安装包zookeeper-3.4.6.tar.gz上传至home目录下。(rz 命令 或者 secureFX工具)
2. 解压安装包
3. 配置文件修改
[sthe@server conf]$ vi zoo.cfg
# The number of milliseconds of each tick
# tickTime:这个时间是作为Zookeeper服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个tickTime时间就会发送一个心跳。
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:Zookeeper保存数据的目录,默认情况下,Zookeeper将写数据的日志文件也保存在这个目录里。
#dataDir=/tmp/zookeeper 这个是默认的
dataDir=/home/sthe/zookeeper-3.4.6/data
# the port at which the clients will connect
#clientPort:这个端口就是客户端连接Zookeeper服务器的端口,Zookeeper会监听这个端口,接受客户端的访问请求。
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
保存退出配置就完了
启动:cd /home/sthe/zookeeper-3.4.6/bin 执行 ./zkServer.sh start
状态:./zkServer.sh status
关闭:./zkServer.sh stop
上个图:
- Zookeeper简单应用(单机)
- Linux下Zookeeper的(单机)安装与简单测试
- Zookeeper的简单应用
- Zookeeper简单应用
- Hadoop入门(二):ZooKeeper单机安装
- zookeeper单机伪集群配置(备忘)
- ZooKeeper单机模式(stand-alone)
- zookeeper(1)单机源码环境搭建
- 分布式--CentOS安装zookeeper(单机版)
- zookeeper单机部署的配置及简单健康检查
- zookeeper之单机安装
- zookeeper之单机安装
- zookeeper配置单机版
- ZooKeeper 单机安装
- zookeeper单机集群安装
- zookeeper windows 单机安装
- zookeeper 单机配置
- 单机安装zookeeper
- oracle转换数字到格式化字符串
- UML序列图总结
- 闲聊ROOT权限——ROOT权限的前世今生
- 搜集的一些scala学习资源
- 移动端基础modal
- Zookeeper简单应用(单机)
- linux配置开发环境(jdk,eclipse,tomcat,mysql)
- NGUI简单介绍
- BFC块级化上下文的解决办法
- Echarts 的例子
- 苹果数字签名的一些问题
- FFmpeg源代码结构图 - 解码
- asp.net目录收放
- explicit的作用