apache-zookeeper-3.7.1 安装部署教程
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

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
您可能感兴趣的文章
- 02-02hadoop动态增加和删除节点方法介绍
- 02-02干货 | Linux新手入门好书推荐
- 02-02linux系统下MongoDB单节点安装教程
- 02-02Linux下nginx生成日志自动切割的实现方法
- 02-02Centos 6中编译配置httpd2.4的多种方法详解
- 02-02CentOS7 下安装telnet服务的实现方法
- 02-02分布式Hibernate search详解
- 02-02Hadoop对文本文件的快速全局排序实现方法及分析
- 02-02CentOS6.3添加nginx系统服务的实例详解
- 02-02Hadoop编程基于MR程序实现倒排索引示例


阅读排行
推荐教程
- 12-07一文教你怎么选择Tomcat对应的JDK版本
- 12-07tomcat启动报错jar not loaded的问题
- 12-10docker start启动容器后仍然exit状态的解决
- 12-23linux中ftp无法访问怎么办
- 12-19Zabbix SAML SSO 登录绕过漏洞的操作流程
- 12-13k8s编排之Deployment知识点详解
- 12-10Linux下如何安装Logstash
- 12-15Docker-Compose搭建Spark集群的实现方法
- 12-11docker存储目录迁移示例教程
- 01-07windows server 2008安装配置DNS服务器




