89284553 2020-04-10
systemctl status firewalld #Active: inactive (dead) --表示防火墙已经关闭
systemctl stop firewalld
systemctl start firewalld
systemctl disable firewalld
systemctl enable firewalld
getenforce #permissive模式是临时关闭,enforcing模式是临时打开,disabled模式是永久关闭
/usr/sbin/sestatus -v #如果SELinux status参数为enabled即为开启状态
setenforce 0
setenforce 1
编辑/etc/selinux/config文件,将SELINUX的值设置为disabled。需要重启机器,下次开机SELinux就不会启动了。这时setenforce 1也打不开SELinux
编辑/etc/selinux/config文件,将SELINUX的值设置为enabled。需要重启机器