1、打开配置文件:/etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
2、关闭,禁用防火墙
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
本文档指导如何在Linux系统中禁用SELinux及防火墙。步骤包括修改配置文件以改变SELinux状态,以及使用systemctl命令停止并禁用firewalld服务。
1、打开配置文件:/etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
2、关闭,禁用防火墙
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
4218

被折叠的 条评论
为什么被折叠?