首页 > 其他 > 详细

red hat的防火墙怎么关闭

时间:2014-07-16 21:40:46      阅读:428      评论:0      收藏:0      [点我收藏+]

查看是否开启:

service iptables status

关闭方法:

service iptables stop

永远关闭:

Ntsysv

把iptables前的*号去掉。

查看SELinux状态:

1、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态

SELinux status:                 enabled

2、getenforce                 ##也可以用这个命令检查

关闭SELinux:

1、临时关闭(不用重启机器):

setenforce 0                  ##设置SELinux 成为permissive模式

                              ##setenforce 1 设置SELinux 成为enforcing模式

2、修改配置文件需要重启机器:

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器即可

red hat的防火墙怎么关闭,布布扣,bubuko.com

red hat的防火墙怎么关闭

原文:http://www.cnblogs.com/liangliangdetianxia/p/3835861.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!