• 首页
  • 产品中心
    • 数式Oinone四大产品

      低代码开发平台无代码开发平台集成开发平台AI大模型开发
    • 数式Oinone体系能力

      用户与组织权限管理文件管理消息中心国际化业务审计
    • 数式Oinone核心产品特性

      低无一体面向软件公司场景无限制应用级扩容可分可合
  • 服务中心
    • 客户服务

      预约演示方案咨询私有部署找人定制
    • 开发者

      问答下载
    • Oinone学院

      社区学习

    《精讲面向软件公司的低代码平台——以Oinone为例》

  • 合作伙伴
    渠道申请伙伴名录专家库
  • 关于数式
0571-88757863

Zookeeper Setup


I. Download Installation Package

Download address: https://zookeeper.apache.org/releases.html

Historical version download address: https://archive.apache.org/dist/zookeeper/

It is recommended to select versions 3.5.8 and above. The 3.8.4 version is used for installation below.

Note

The following commands need to be executed in the Zookeeper installation directory. You can enter the directory by the command cd <Zookeeper installation directory>. On Linux/macOS systems, use the default terminal; on Windows systems, use PowerShell.

II. Installation

(I) Unzip

Use visualization tools or the following commands to unzip:

# Linux/macOS
tar zxvf apache-zookeeper-3.8.4-bin.tar.gz -C <Zookeeper installation directory>

Windows can try the above command. If there is no tar command, use Windows Explorer to unzip.

Prompt

For the convenience of subsequent operations, a soft link can be created for the Zookeeper installation directory.

Create a soft link (optional):

# Linux/macOS
ln -s apache-zookeeper-3.8.4-bin zookeeper
# Windows
New-Item -Path .\zookeeper\ -ItemType SymbolicLink -Target .\apache-zookeeper-3.8.4-bin

(II) Configuration

Create a data storage directory:

# Linux/macOS/Windows
mkdir data

Modify the Zookeeper configuration:

# Linux/macOS
cat > ./conf/zoo.cfg << EOF
tickTime=2000
initLimit=10
syncLimit=5
dataDir=data
clientPort=2181
clientPortAddress=127.0.0.1
autopurge.snapRetainCount=3
autopurge.purgeInterval=1
admin.serverPort=8888
admin.enableServer=false
EOF
# Windows
Set-Content -Path ./conf/zoo.cfg -Value @(
    "tickTime=2000"
    "initLimit=10"
    "syncLimit=5"
    "dataDir=data"
    "clientPort=2181"
    "clientPortAddress=127.0.0.1"
    "autopurge.snapRetainCount=3"
    "autopurge.purgeInterval=1"
    "admin.serverPort=8888"
    "admin.enableServer=false"
)

III. Run

# Linux/macOS
./bin/zkServer.sh start
# Windows
.\bin\zkServer.cmd

IV. Stop

# Linux/macOS
./bin/zkServer.sh stop
# Windows
Close the running terminal
Edit this page
Last Updated:1/15/26, 4:02 AM
Prev
RocketMQ Setup
Next
MySQL Setup
默认页脚
Copyright © 2026 Mr.Hope