1.关闭防火墙:iptables -F
2.关闭selinux:
临时关闭:
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
永久关闭(系统关机后可能卡白条无法启动):
查看当前SELinux状态:
/usr/bin/setstatus -v
编辑/etc/selinux/config,找到SELINUX 行修改成为:SELINUX=disabled:
原:SELINUXTYPE=targeted
改:SELINUX=disabled:
重启系统即可。
引用:https://www.cnblogs.com/chunshu/p/6219499.html
https://blog.youkuaiyun.com/xin_y/article/details/79007986
博客介绍了在Linux系统中关闭防火墙和SELinux的方法。关闭防火墙使用命令iptables -F;SELinux可临时关闭,使用setenforce 0命令,也可永久关闭,但系统关机后可能启动异常,需编辑配置文件并重启系统,还给出了相关引用链接。
485

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



