Linux关闭系列防火墙

2020-09-15  本文已影响0人  肉包君

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

上一篇 下一篇

猜你喜欢

热点阅读