龙空技术网

Centos 7关闭防火墙&SELINUX

博学的蛋糕T 51

前言:

今天看官们对“centos71关闭防火墙”大约比较珍视,各位老铁们都需要知道一些“centos71关闭防火墙”的相关资讯。那么小编也在网络上汇集了一些对于“centos71关闭防火墙””的相关内容,希望你们能喜欢,大家一起来了解一下吧!

防火墙

临时关闭防火墙:systemctl stop firewalld永久关闭防火墙开机自启动:systemctl disable firewalld临时打开防火墙:systemctl start firewalld防火墙开机启动:systemctl enable firewalld查看防火墙状态:systemctl status firewalld

SELinux

查看SELinux状态:getenforce

enforcing为开启、disable为关闭临时关闭SELinux:setenforce 0临时打开SELinux:setenforce 1永久关闭SELinux:编辑/etc/selinux/config文件,将SELINUX的值设置为disabled,重启

标签: #centos71关闭防火墙 #centos中强制退出编辑 #关闭centos7selinux #centos69关闭防火墙命令 #cnetos6关闭selinux