File tree Expand file tree Collapse file tree
codes/deploy/tool/zookeeper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ` 路径下。
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments