Skip to content

Latest commit

 

History

History

firewalld-disable

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

关闭并开机禁用 firewalld

脚本描述

关闭并开机禁用 firewalld

脚本内容

firewalld-disable.sh

#!/bin/bash

# '\033[字背景颜色;字体颜色m字符串\033[0m'
GREENCOLOR='\033[1;32m'
NC='\033[0m'

echo "===================================================="
printf "${GREENCOLOR} firewalld's disable begin ${NC} \n"
echo "===================================================="

# 关闭防火墙
systemctl stop firewalld
# 开机禁用防火墙
systemctl disable firewalld

echo "===================================================="
printf "${GREENCOLOR} firewalld's disable finish ${NC} \n"
echo "===================================================="

执行

bash firewalld-disable.sh