美文网首页
CentOS 6 关闭防火墙和selinux

CentOS 6 关闭防火墙和selinux

作者: 网络小乙 | 来源:发表于2020-08-14 11:18 被阅读0次
  • 关闭防火墙
service iptables status #查看防火墙的状态
service iptables stop #停止防火墙
chkconfig iptables off #永久关闭防火墙
  • 关闭SELINUX
sestatus #查看selinux状态
setenforce #临时关闭SeLinux

如果要永久关闭SeLinux,需要修改配置文件/etc/selinux/config,将SELINUX置为disabled,然后重启系统。

相关文章

网友评论

      本文标题:CentOS 6 关闭防火墙和selinux

      本文链接:https://www.haomeiwen.com/subject/cckgdktx.html