欢迎来到站长天空!

其它服务器

当前位置: 主页 > 服务器 > 其它服务器

apache-zookeeper-3.7.1 安装部署教程

时间:2025-12-14 04:30:04|栏目:其它服务器|点击:

apache-zookeeper-3.7.1 安装部署

下载地址:https://mirrors.bfsu.edu.cn/apache/zookeeper/

apache-zookeeper-3.7.1
1.下载直接解压,进入../conf/目录下复制一份zoo_sample.conf, 改名为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=/tmp/zookeeper
# 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

## Metrics Providers
#
# https://prometheus.io Metrics Exporter
#metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
#metricsProvider.httpPort=7000
#metricsProvider.exportJvmInfo=true

dataDir=D:\\soft_position\\Java\\zzz_test\\apache-zookeeper-3.7.1\\data 
dataLogDir=D:\\soft_position\\Java\\zzz_test\\apache-zookeeper-3.7.1\\log

admin.serverPort=8887

配置参考二:

# dataDir里放的是内存数据结构的snapshot
dataDir=../data
# 客户端连接zookeeper服务的端口
clientPort=2183
# 服务启动默认8080,避免和其他服务冲突配置8888
admin.serverPort=8888
# 配置zookeeper 的默认账号密码, 用于登入dubbo
admin.root.user.name=root
admin.root.user.password=root

apache-zookeeper-3.7.1 安装部署教程

2.启动zookeeper,进入../bin/目录,Windows环境启动文件为zkServer.cmd,Linux环境启动文件为zkServer.sh

zookeeper 启动
#在这个目录下面
D:\soft_position\Java\zzz_test\apache-zookeeper-3.7.1\bin
#双击 zkServer.cmd **** 启动**********

apache-zookeeper-3.7.1 安装部署教程

其他参考地址: 安装注册中心 zookeeper

上一篇:linux中grep命令使用实战详解

栏    目:其它服务器

下一篇:expect实现Linux自动登陆远程机器脚本实例

本文标题:apache-zookeeper-3.7.1 安装部署教程

本文地址:https://zz.feitang.co/server/30712.html

广告投放 | 联系我们 | 版权申明

申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:257218569 | 邮箱:257218569@qq.com

Copyright © 2018-2025 站长天空 版权所有 Powered by EyouCms冀ICP备14023439号