Skip to content

Commit 63047db

Browse files
committed
🔖 ZooKeeper
1 parent b6d2f20 commit 63047db

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 安装 ZooKeeper
2+
3+
使用方法:
4+
5+
```sh
6+
wget --no-check-certificate --no-cookies https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/zookeeper/install-zookeeper.sh
7+
chmod -R 777 install-zookeeper.sh
8+
./install-zookeeper.sh
9+
```
10+
11+
脚本会下载解压 zookeeper 到 `/opt/software/zookeeper` 路径下。
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
###################################################################################
4+
# 安装 zookeeper 脚本
5+
# 适用于所有 linux 发行版本。
6+
# Author: Zhang Peng
7+
###################################################################################
8+
9+
echo -e "\n>>>>>>>>> install zookeeper"
10+
11+
root=/opt/software/zookeeper
12+
version=3.4.12
13+
mkdir -p ${root}
14+
wget -O ${root}/zookeeper-${version}.tar.gz http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz
15+
cd ${root}
16+
tar -zxf zookeeper-${version}.tar.gz
17+
cd zookeeper-${version}

0 commit comments

Comments
 (0)