2020-09-15
Linux关闭系列防火墙
vim clean.sh
#!/bin/bash
#author perin
#功能:关闭防火墙firewalld和selinux
systemctl stop firewalld && systemctl disable firewalld
sed -ri s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
setenforce 0
chmod a+x clean.sh
bash clean.sh
网友评论