安全加强型 Linux(Security-Enhanced Linux)简称 SELinux,它是一个 Linux 内核模块,也是 Linux 的一个安全子系统。linux
SELinux 主要由美国国家安全局开发。2.6 及以上版本的 Linux 内核都已经集成了 SELinux 模块。vim
SELinux 的结构及配置很是复杂,并且有大量概念性的东西,要学精难度较大。不少 Linux 系统管理员嫌麻烦都把 SELinux 关闭了安全
vim /etc/selinux/config SELINUX=enforcing 改成 SELINUX=disabled
getenforce
启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : systemctl enable firewalld