Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-wyf committed Jun 4, 2024
2 parents 464adfd + bf58bbc commit 6302e7c
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Ansible 部署 ES-7.16.3-x86
# 简介
ES7.16.3-ansible安装脚本

银河麒麟V10-SP3 X86架构机器专用
KylinESAutoInstaller
该项目使用 Ansible 自动化工具,实现在银河麒麟V10-SP3 x86架构版本上对 Elasticsearch 的一键式离线环境安装。该项目包含所有必要的安装文件,使安装过程简单快速。

# 主要特点
* 一键式安装:使用 Ansible 简化 Elasticsearch 安装流程。
* 集成所有安装文件:将所有必需的安装文件(例如 Asnsble、Elasticsearch 和 Supervisor)集成在一起。
* 简化配置:提供简单的配置选项,以适应各种环境。
* 自动化:自动化安装过程,减少手动工作量。
* 常用功能:集群扩容节点、滚动重启、全面重启、节点下线、节点上线、节点销毁、插件安装等。

# 优点
* 快速安装,节省时间。
* 简化管理,降低成本。
* 可扩展性,可以扩展到大型环境。
* 可维护性,易于维护。

# 前期准备
* 服务器要求:银河麒麟V10-SP3 X86架构
* ansible服务器1台【172.168.0.125】
Expand Down Expand Up @@ -30,25 +43,25 @@
* 工作目录结构
```text
Yogoo-KylinES7.16.3AutoInstaller
├─ ansible_install.sh # ansible一键安装脚本
├─ elk_pkg # ES部署相关安装包
├─ ansible_install.sh # ansible一键安装脚本
├─ elk_pkg # ES部署相关安装包
│ └─ elk
│ └─ README.txt # 需要的安装包列表,可前往交流群下载
├─ playbook # ansible剧本文件
│ ├─ inventory # ansible剧本配置文件
│ │ ├─ all # 配置节点ip及别名
│ │ ├─ es_7.16.3 # ES安装基础配置文件
│ │ ├─ es_7.16.3_add # ES安装扩容配置文件
│ │ ├─ es_7.16.3_more # ES安装单机多实例配置文件
│ │ └─ kibana_7.16.3 # kibana安装配置文件
│ ├─ playbooks # ansible剧本目录
│ │ ├─ roles # 各安装项剧本
│ │ │ ├─ elasticsearch # ES安装相关剧本
│ │ │ ├─ kibana # kibana安装相关剧本
│ │ │ └─ supervisor # supervisor安装相关剧本
│ └─ script_bash # 剧本一键执行脚本
├─ portable-ansible-v0.4.0-py3.tar.bz2 # ansible离线包
└─ soft_pkg # 部署所需相关程序安装包
│ └─ README.txt # 需要的安装包列表,可前往交流群下载
├─ playbook # ansible剧本文件
│ ├─ inventory # ansible剧本配置文件
│ │ ├─ all # 配置节点ip及别名
│ │ ├─ es_7.16.3 # ES安装基础配置文件
│ │ ├─ es_7.16.3_add # ES安装扩容配置文件
│ │ ├─ es_7.16.3_more # ES安装单机多实例配置文件
│ │ └─ kibana_7.16.3 # kibana安装配置文件
│ ├─ playbooks # ansible剧本目录
│ │ ├─ roles # 各安装项剧本
│ │ │ ├─ elasticsearch # ES安装相关剧本
│ │ │ ├─ kibana # kibana安装相关剧本
│ │ │ └─ supervisor # supervisor安装相关剧本
│ └─ script_bash # 剧本一键执行脚本
├─ portable-ansible-v0.4.0-py3.tar.bz2 # ansible离线包
└─ soft_pkg # 部署所需相关程序安装包
```

## 步骤2:文件下载服务配置
Expand All @@ -61,7 +74,7 @@ systemctl stop firewalld
# 启动文件下载服务
cd /root/yogoo_es_ansible/elk_pkg
nohup python3 -m http.server 8080 &
# 浏览器访问服务器ip对应地址,即可查看到/root/yogoo_es_ansible/elk_pkg/elk目录下文件
# 浏览器访问服务器ip对应地址,即可查看到 /root/yogoo_es_ansible/elk_pkg/elk 目录下文件
http://172.168.0.125:8080/elk
```
## 步骤3:机器之间的免密配置
Expand Down Expand Up @@ -119,7 +132,7 @@ logout
cd /root/yogoo_es_ansible
# ansible_install.sh 增加可执行权限
chmod +x ansible_install.sh
# 执行安装ansible脚本
# 执行安装 ansible 脚本
./ansible_install.sh
source /etc/profile
```
Expand Down

0 comments on commit 6302e7c

Please sign in to comment.