Centos7关闭防火墙与selinux

时间:2023-03-08 23:47:51
Centos7关闭防火墙与selinux

CentOS 7.0默认使用的是firewall作为防火墙

直接关闭防火墙

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

重启:shutdown -r now ← 立刻关闭系统并重启

关闭selinux

Redhat应用了SELinux去加强平安,永久封闭的举措为:

修改 /etc/selinux/config 文件中的 SELINUX=”” 为 disabled ,然后重启。