diff --git a/newset.sh b/newset.sh index d04eae6..772caff 100644 --- a/newset.sh +++ b/newset.sh @@ -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