企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 一、下载安装 下载地址:[https://archive.apache.org/dist/zookeeper/](https://link.jianshu.com/?t=https%3A%2F%2Farchive.apache.org%2Fdist%2Fzookeeper%2F); ``` wget https://archive.apache.org/dist/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz ``` ``` tar -zxvf apache-zookeeper-3.7.0-bin.tar.gz mv apache-zookeeper-3.7.0-bin zookper ``` ## 二、配置 复制conf/zoo_sample.cfg并另存为conf/zoo.cfg ``` mv zoo_sample.cfg zoo.cfg vi zoo.cfg ``` ## 三、启动运行 ``` bin/zkServer.sh start conf/zoo.cfg ``` ![](https://img.kancloud.cn/01/3d/013d638906db22ff0a0f1e6fa3077bca_1408x107.png) ## 四、测试 ``` bin/zkCli.sh -server localhost:2181 ``` ![](https://img.kancloud.cn/3b/91/3b91b01979f6c8fd68b7ddf1a124932b_1441x912.png) ![](https://img.kancloud.cn/0a/87/0a87860ad98733bf1cf9398e6e84736d_1441x912.png) 连接成功后可以使用如下命令; ![](https://img.kancloud.cn/ef/af/efaf136eb9e23b635f2733aac1fb1995_1416x292.png)