Linux系统需要关闭的安全防护

泄露秘密 提交于 2020-02-04 16:52:52

1.关闭网络管理

我们一般在开发时都会将它关闭掉,因为它在做集群的时候,可能会劫持

systemctl status NetworkManager

systemctl stop NetworkManager

systemctl disable NetworkManager  设置为开机不启动

 

2.关闭防火墙

systemctl status firewalld

systemctl stop firewalld

systemctl disable firewalld

 

3.关闭selinux

临时更改

getenforce    查看selinux的状态

setenforce disable  设置selinux的状态为不可用  临时生效 开机就无效了

修改配置文件(永久)

vim /etc/sysconfig/selinux    或者   vim /etc/selinux/config

将第七行 SELINUX=enforce   修改为 SELINUX=disable

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!