增加了 unzip、git、screen等常用软件,增加了fwd简便防火墙工具

This commit is contained in:
wzj 2022-09-02 22:00:00 -04:00
parent 9df1439041
commit 296f31f110

View File

@ -6,7 +6,7 @@
#安装基本工具
BASE_INSTALL()
{
echo -e "\033[32m安装基本工具\033[0m"
echo -e "\033[32m------------------------------------------ 安装基本工具 --------------------------------------------\033[0m"
sleep 1.5
for i in wget
do
@ -16,7 +16,7 @@ done
REPO_REPLACE()
{
echo -e "\033[32m备份旧yum源并导入阿里源\033[0m"
echo -e "\033[32m------------------------------------------ 备份旧yum源并导入阿里源 --------------------------------------------\033[0m"
sleep 1.5
DATE=`date +"%Y-%m-%d"`
if [ ! -d /etc/yum.repos.d/bak/${DATE} ];then
@ -35,11 +35,11 @@ yum makecache
TOOL_INSTALL()
{
echo -e "\033[32m安装常用工具\033[0m"
echo -e "\033[32m-------------------------------------------- 安装常用工具 --------------------------------------------\033[0m"
sleep 1.5
for TOOL in net-tools lrzsz vim
for TOOL in net-tools lrzsz vim unzip git screen nethogs speedtest-cli lm_sensors
do
echo "安装${TOOL}..."
echo -e "\033[33m安装${TOOL}...\033[0m"
sleep 1
#rpm -qa|grep ${TOOL} >>/dev/null 2>&1
#if [ $? -ne 0 ];then
@ -50,15 +50,17 @@ done
FIREWALLD()
{
echo -e "\033[32m关闭防火墙FIREWALLD\033[0m"
sleep 1.5
systemctl disable firewalld
systemctl stop firewalld
#echo -e "\033[32m关闭防火墙FIREWALLD\033[0m"
#sleep 1.5
#systemctl disable firewalld
#systemctl stop firewalld
echo -e "\033[32m-------------------------------------------- 下载firewalld简便工具 --------------------------------------------\033[0m"
wget -O /usr/bin/fwd https://mirror.liuyan.wang/shell/fwd.sh && chmod +x /usr/bin/fwd
}
IPTABLES()
{
echo -e "\033[32m关闭防火墙IPTABLES\033[0m"
echo -e "\033[32m-------------------------------------------- 关闭防火墙IPTABLES --------------------------------------------\033[0m"
sleep 1.5
setenforce 0
if [ ! -f /etc/selinux/config.bak ];then