#!/usr/bin/env bash # --------------------------------------------------------------------------------- # 控制台颜色 BLACK="\033[1;30m" RED="\033[1;31m" GREEN="\033[1;32m" YELLOW="\033[1;33m" BLUE="\033[1;34m" PURPLE="\033[1;35m" CYAN="\033[1;36m" RESET="$(tput sgr0)" # --------------------------------------------------------------------------------- ################################################################################### # 关闭防火墙 # 参考:https://www.cnblogs.com/moxiaoan/p/5683743.html # @author: Zhang Peng ################################################################################### systemctl stop firewalld systemctl disable firewalld printf "\n${GREEN}<<<<<<<< 已关闭防火墙${RESET}\n"