广告位联系
返回顶部
分享到

apache-zookeeper-3.7.1 安装部署教程

linux 来源:互联网 作者:佚名 发布时间:2023-02-06 22:00:26 人浏览
摘要

apache-zookeeper-3.7.1 安装部署 下载地址:https://mirrors.bfsu.edu.cn/apache/zookeeper/ apache-zookeeper-3.7.1 1.下载直接解压,进入../conf/目录下复制一份zoo_sample.conf, 改名为zoo.cfg 配置参考一: 1 2 3 4 5 6

apache-zookeeper-3.7.1 安装部署

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

apache-zookeeper-3.7.1
1.下载直接解压,进入../conf/目录下复制一份zoo_sample.conf, 改名为zoo.cfg

配置参考一:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

# 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

配置参考二:

1

2

3

4

5

6

7

8

9

# dataDir里放的是内存数据结构的snapshot

dataDir=../data

# 客户端连接zookeeper服务的端口

clientPort=2183

# 服务启动默认8080,避免和其他服务冲突配置8888

admin.serverPort=8888

# 配置zookeeper 的默认账号密码, 用于登入dubbo

admin.root.user.name=root

admin.root.user.password=root

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

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

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


版权声明 : 本文内容来源于互联网或用户自行发布贡献,该文观点仅代表原作者本人。本站仅提供信息存储空间服务和不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权, 违法违规的内容, 请发送邮件至2530232025#qq.cn(#换@)举报,一经查实,本站将立刻删除。
原文链接 : https://www.cnblogs.com/dafei4/p/17088496.html
相关文章
  • 本站所有内容来源于互联网或用户自行发布,本站仅提供信息存储空间服务,不拥有版权,不承担法律责任。如有侵犯您的权益,请您联系站长处理!
  • Copyright © 2017-2022 F11.CN All Rights Reserved. F11站长开发者网 版权所有 | 苏ICP备2022031554号-1 | 51LA统计