您的位置:首页 > 运维架构 > Linux

关闭CentOS 7 防火墙和SELinux

2015-01-13 00:00 381 查看
摘要: 关闭CentOS 7 防火墙和SELinux

最新的CentOS 7防火墙已经更新为firewalld。

为了方便调试需要关闭防火墙和selinux。

1. 运行、停止、禁用firewalld

启动:# systemctl start firewalld

查看状态:# systemctl status firewalld 或者 firewall-cmd --state

停止:# systemctl disable firewalld

禁用:# systemctl stop firewalld

2.关闭SELINUX

在文件 /etc/selinux/config 修改

SELINUXTYPE = targeted



SELINUX = disabled
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  CentOS 7 防火墙 SELinux