selinux(保护文件安全)

安全增强型 Linux(Security-Enhanced Linux)简称 SELinux,它是一个 Linux 内核模块,也是 Linux 的一个安全子系统。

SELinux 主要由美国国家安全局开发。2.6 及以上版本的 Linux 内核都已经集成了 SELinux 模块。

SELinux 的结构及配置非常复杂,而且有大量概念性的东西,要学精难度较大。很多 Linux 系统管理员嫌麻烦都把 SELinux 关闭了

关闭

vim /etc/selinux/config 


SELINUX=enforcing
改为
SELINUX=disabled

查看状态

getenforce

firewalled(防止外部攻击)

启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld 
开机禁用  : systemctl disable firewalld
开机启用  : systemctl enable firewalld
posted on 2019-06-26 16:36  23云恋49枫  阅读(147)  评论(0编辑  收藏  举报