######################################################
#
###########################################################
# Smash-wall-install
## 简介
项目名:砸墙
目标:破而后立
支持中英文
shell自动安装,简称Smash-wall ,类似centos的yum或者ubuntu的apt命令
可以一键安装服务,集群,其它类型脚本,可视化工具
Smash-wall 可以对所支持的所有服务进行安装,查看,卸载,自定义编辑
当不符合脚本要求时,会退出并提示如何解决,解决后再次安装即可
## 注意事项
请先进行测试后,再在生产或其他重要场合使用。
当前只支持centos7
当前脚本需要Linux入门知识
## 使用方法
[
下载后
tar -xf Smash-wall.tar.gz
cd Smash-wall-install
chmod +x Smash-wall.sh
./Smash-wall.sh
## 使用自定义安装包
如果想使用其他版本的mysql等服务的安装包,可以将安装包放到package文件夹中
再使用./Smash-wall.sh edit mysql 将get_mysql函数中网址部分替换为安装包名,md5部分替换为相应md5值
可能需要修改脚本的安装步骤
## 设置中文
默认是英文,vim sai.sh 可以修改全局的安装目录,中英文显示
## 查看帮助
## 查看列表
列表分为3部分,应用名,版本,介绍
### 使用tomcat 创建yum 源
将iso文件下面的内容拷到tomcat 一下一个webapps/yum目录下面
所有的机器上面都配置相同的:vi /etc/yum.repos.d/base.repo
------------------------------------------------------------------------------------------------------------------------------------------------------
[base]
name=CentOS
baseurl=http://192.168.49.128:8080/yum
gpgcheck=1
----------------------------------------------------------------------------------------------------------------------------------------------------------------
yum clean all
yum list 查看yum的详细信息
## ***第一个安装检查操作系统的命令***
## 安装使用说明:
#### **命令使用:**
#### **获取相应的包**
sh -x Smash-wall.sh get cha
#### **安装**
sh -x Smash-wall.sh install cha 此方法为安装
#### **详细说明**
sh -x Smash-wall.sh info cha 此方法为安装
### 卸载
sh -x Smash-wall.sh remove cha
安装完成后使用:
cha
输出内容
-c Display Chinese
system:CentOS 7.6.1810
cpu:Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
cpu frequency:2711.998
cpu core number:2
architecture: x86_64
digits:64
total memory:3771
remaining memory:3385
swap zone total:2047
total remainder os wap partitions:2047
total boot time:0days, 2:56:50
root partition capacity:37G
root zone residual capacity:34G
ip address:192.168.49.128
host name:localhost.localdomain
current language:en_US.UTF-8
current operation interface border length:33
current operating interface border width:167
如果使用-c输出内容为
默认显示英文
系统:CentOS 7.6.1810
cpu:Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
cpu频率:2711.998
cpu核心数:2
架构: x86_64
位数:64
总内存数:3771
剩余内存:3385
交换分区总量:2047
交换分区剩余总量:2047
总开机时间:0days, 2:57:20
根分区容量:37G
根分区剩余容量:34G
ip地址:192.168.49.128
主机名:localhost.localdomain
当前语言:en_US.UTF-8
当前操作界面边框长:33
----------------------------------------------------------------------------------------------------------------------------
**第一个安装检查操作系统的命令***
下载包: sh -x Smash-wall.sh get chinese_font
安装包:sh -x Smash-wall.sh install chinese_font
卸载包:sh -x Smash-wall.sh remove chinese_font
----------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------
安装jdk
获取相应的包
sh -x Smash-wall.sh get jdk
安装
sh -x Smash-wall.sh install jdk
#卸载
sh -x Smash-wall.sh remove jdk
信息:
sh -x Smash-wall.sh info jdk
----------------------------------------------------------------------------------------------------------------------------------------------------
安装zookeeper
----------------------------------------------------------------------------------------------------------------------------------------------------------------
下载包
sh -x Smash-wall.sh get zookeeper
安装包
sh -x Smash-wall.sh install zookeeper
配置集群
sh -x Smash-wall.sh install zookeeper_cluster
------
安装kafka
------
下载包
sh -x Smash-wall.sh get kafka
安装包
sh -x Smash-wall.sh install kafka
配置集群
sh -x Smash-wall.sh install kafka_cluster
配置集群管理软件
sh -x Smash-wall.sh install kafka_manager
安装nginx
------
下载包
sh -x Smash-wall.sh get nginx
安装包
sh -x Smash-wall.sh install nginx
安装redis
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Smash-wall-install/
Smash-wall-install/conf/
Smash-wall-install/conf/installed.txt
Smash-wall-install/lib/
Smash-wall-install/lib/process.sh
Smash-wall-install/lib/system.sh
Smash-wall-install/lib/test.sh
Smash-wall-install/material/
Smash-wall-install/material/cha
Smash-wall-install/material/man-jenkins
Smash-wall-install/material/man-kafka-cluster
Smash-wall-install/material/man-kafka-manage
Smash-wall-install/material/man-mindoc
Smash-wall-install/material/man-redis
Smash-wall-install/material/man-redis-browser
Smash-wall-install/material/redis_7000.conf
Smash-wall-install/material/redis_browser.yml
Smash-wall-install/material/server.properties
Smash-wall-install/material/man-kafka-manager
Smash-wall-install/package/
Smash-wall-install/README.md
Smash-wall-install/script/
Smash-wall-install/script/cha.sh
Smash-wall-install/script/chinese_font.sh
Smash-wall-install/script/mindoc.sh
Smash-wall-install/script/nodejs.sh
Smash-wall-install/script/python.sh
Smash-wall-install/script/jdk.sh
Smash-wall-install/script/jenkins.sh
Smash-wall-install/script/redis_port.sh
Smash-wall-install/script/redis_cluster.sh
Smash-wall-install/script/mysql_single.sh
Smash-wall-install/script/zookeeper.sh
Smash-wall-install/script/zookeeper_cluster.sh
Smash-wall-install/script/kafka.sh
Smash-wall-install/script/kafka_cluster.sh
Smash-wall-install/script/kafka_manager.sh
Smash-wall-install/script/nginx.sh
Smash-wall-install/script/mysql.sh
Smash-wall-install/script/redis.sh
Smash-wall-install/Smash-wall.sh
####################################################################################################