首页 > 其他分享 >【zookeeper安装】

【zookeeper安装】

时间:2022-10-17 12:06:10浏览次数:37  
标签:安装 zookeeper number 3.4 zkServer dataDir local


前言:

最近自己重新搭建了一遍SSM框架,期间温习了一些软件的安装,今天这篇博客咱们主要来说说zookeeper的安装,记录自己的实践过程.

核心:

第一步:

下载zookeeper-3.4.6.tar.gz(前提虚拟机上需要安装jdk)

第二步:

把zookeeper-3.4.6.tar.gz上传到/usr/local目录下,并解压(z:压缩  x:解压  v:过程  f:文件)

【zookeeper安装】_zookeeper

第三步

进入zookeeper-3.4.6目录,创建data文件夹。

第四步

进入到zookeeper-3.4.6/conf中把zoo_sample.cfg改名为zoo.cfg,然后把zoo.cfg里边的dataDir改成

dataDir=/usr/local/zookeeper-3.4.6/data
1
# 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=/usr/local/zookeeper-3.4.6/data
# 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


第五步

进入到zookeeper-3.4.6/bin

执行启动命令(启动命令之前,确保2181端口开放)

./zkServer.sh start

【zookeeper安装】_ssm框架_02


执行关闭命令

./zkServer.sh stop

查看状态命令

./zkServer.sh status

【zookeeper安装】_ssm框架_03


总结:

今天博客就写到这里,感谢伙伴们的阅读.

标签:安装,zookeeper,number,3.4,zkServer,dataDir,local
From: https://blog.51cto.com/u_15586641/5762054

相关文章

  • windows minio服务安装以及springboot集成
    @​​TOC​​​​​​本文只介绍如何将minio做成服务​​1.将minio做成服务将MinioServer.exe放在minio安装目录中同目录下创建MinioServer.xml。特别注意,xml和exe必须同名......
  • 【redis集群安装】
    前言上次咱们讲到了redis的安装,这次咱们来说说redis集群的搭建,并且在这篇博客中,我会总结一下我遇到的问题.核心安装版本现在的最新版本运行环境yuminstallrubyyuminstallrubygems安......
  • 【项目中遇到的zookeeper的问题】
    前言:本篇博客总结自己项目中zookeeper中遇到的问题,记录下来,以便日后查阅,也分享给读者.核心:问题一:zookeeperClientSession0x0forservernull解决办法:服务......
  • QFramework v1.0 使用指南 工具篇:02. 下载与安装
    如何下载&安装QFramework.Toolkits的最新unitypackage存放在git仓库里,如下图所示:git仓库地址:github:https://github.com/liangxiegame/QFrameworkgitee(国内......
  • 安装 elasticsearch
    1、安装#vimelasticsearch.shapp_uri=https://artifacts.elastic.co/downloads/elasticsearchapp_version=elasticsearch-7.9.2app_dir=/opt/esmkdir$app......
  • 使用Powershell/cmd提取msi安装包中的文件
    在前面的文章中介绍过如何使用msiexec这个程序执行自动化安装(https://www.cnblogs.com/zhaotianff/p/11558602.html)如果需要提取msi安装包中的文件,也可以使用msiexec程......
  • Docker安装私有云盘
    Docker安装私有云盘dockerpullnextclouddockerrun-d-p8080:80nextcloud-d后台运行容器,并返回容器ID;-p指定端口映射,格式为:主机(宿主)端口:容器端口......
  • IPFS安装笔记
    IPFS安装笔记1.创建ipfs目录,并进入目录中cd/homemkdiripfscdipfs/2.下载go-ipfs_v0.6.0_linux-amd64.tar.gz进入https://github.com/ipfs/go-ipfs/releases下......
  • Docker安装个人博客
    我的个人博客第一步:准备镜像dockerpullwordpressdockerpullmysqldockerimages|egrep‘wordpress|mysql’第二步:创建mysql容器[root@fabric/]#mkdir/data[......
  • Docker安装笔记
    Docker安装笔记1.卸载旧版本sudoyumremovedocker\        docker-client\        docker-client-latest\    ......