其他一键安装脚本
This commit is contained in:
18
firewalld-disable/firewalld-disable.sh
Normal file
18
firewalld-disable/firewalld-disable.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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 "===================================================="
|
||||
Reference in New Issue
Block a user