apache-zookeeper-3.7.1?安裝部署教程
apache-zookeeper-3.7.1 安裝部署
下載地址:https://mirrors.bfsu.edu.cn/apache/zookeeper/
apache-zookeeper-3.7.1
1.下載直接解壓,進(jìn)入../conf/目錄下復(fù)制一份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里放的是內(nèi)存數(shù)據(jù)結(jié)構(gòu)的snapshot dataDir=../data # 客戶端連接zookeeper服務(wù)的端口 clientPort=2183 # 服務(wù)啟動(dòng)默認(rèn)8080,避免和其他服務(wù)沖突配置8888 admin.serverPort=8888 # 配置zookeeper 的默認(rèn)賬號(hào)密碼, 用于登入dubbo admin.root.user.name=root admin.root.user.password=root

2.啟動(dòng)zookeeper,進(jìn)入../bin/目錄,Windows環(huán)境啟動(dòng)文件為zkServer.cmd,Linux環(huán)境啟動(dòng)文件為zkServer.sh
zookeeper 啟動(dòng)
#在這個(gè)目錄下面
D:\soft_position\Java\zzz_test\apache-zookeeper-3.7.1\bin
#雙擊 zkServer.cmd **** 啟動(dòng)**********

其他參考地址: 安裝注冊(cè)中心 zookeeper
到此這篇關(guān)于apache-zookeeper-3.7.1 安裝部署的文章就介紹到這了,更多相關(guān)apache-zookeeper-3.7.1 安裝內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Linux系統(tǒng)啟動(dòng)慢或無法啟動(dòng)的排查方法
Linux系統(tǒng)啟動(dòng)慢或無法啟動(dòng)的問題,通常需要綜合考慮硬件、內(nèi)核、服務(wù)配置等多方面因素進(jìn)行排查,本文給大家介紹了詳細(xì)的排查步驟和方法,對(duì)大家的學(xué)習(xí)或工作有一定的幫助,需要的朋友可以參考下2024-11-11
Linux之進(jìn)程狀態(tài)&&進(jìn)程優(yōu)先級(jí)詳解
文章介紹了操作系統(tǒng)中進(jìn)程的狀態(tài),包括運(yùn)行狀態(tài)、阻塞狀態(tài)和掛起狀態(tài),并詳細(xì)解釋了Linux下進(jìn)程的具體狀態(tài)及其管理,此外,文章還討論了進(jìn)程的優(yōu)先級(jí)、查看和修改進(jìn)程優(yōu)先級(jí)的方法,以及并發(fā)相關(guān)的概念和函數(shù)的返回值2025-02-02
在Linux環(huán)境如何將python腳本打deb包
為方便傳輸和使用Python腳本,可以將其制作成deb包。本文詳細(xì)介紹了在uos系統(tǒng)下使用debian目錄和相關(guān)文件來定制和構(gòu)建deb包,涵蓋創(chuàng)建配置文件、修改文件、設(shè)置安裝和鏈接規(guī)則等步驟,并提供了打包命令。這樣可以簡化腳本的分發(fā)和安裝過程,使其更加便捷2024-09-09
詳解CentOS阿里云云服務(wù)器硬盤分區(qū)及掛載
這篇文章主要介紹了詳解CentOS阿里云云服務(wù)器硬盤分區(qū)及掛載 ,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2016-12-12
Linux ps和pstree命令知識(shí)點(diǎn)總結(jié)
在本篇文章里小編給大家分享的是關(guān)于Linux ps和pstree命令知識(shí)點(diǎn)總結(jié)內(nèi)容,需要的朋友們可以學(xué)習(xí)參考下。2020-02-02

