Redhat关闭SELinux和防火墙的办法(转)
2014-10-16 16:32
344 查看
Redhat使用了SELinux来增强安全,关闭的办法为:
1. 永久有效
修改 /etc/selinux/config 文件中的 SELINUX="" 为 disabled ,然后重启。
2. 即时生效
setenforce 0
关闭防火墙的方法为:
1. 永久性生效
开启:chkconfig iptables on
关闭:chkconfig iptables off
2. 即时生效,重启后失效
开启:service iptables start
关闭:service iptables stop
需要说明的是对于 Linux 下的其它服务都可以用以上命令执行开启和关闭操作
补充:
a. 防火墙还需要关闭ipv6的防火墙:
chkconfig ip6tables off
并且可以通过如下命令查看状态:
chkconfig --list iptables
b. selinux状态可以通过以下命令查看:
sestatus
http://blog.chinaunix.net/uid-11582448-id-3157977.html
1. 永久有效
修改 /etc/selinux/config 文件中的 SELINUX="" 为 disabled ,然后重启。
2. 即时生效
setenforce 0
关闭防火墙的方法为:
1. 永久性生效
开启:chkconfig iptables on
关闭:chkconfig iptables off
2. 即时生效,重启后失效
开启:service iptables start
关闭:service iptables stop
需要说明的是对于 Linux 下的其它服务都可以用以上命令执行开启和关闭操作
补充:
a. 防火墙还需要关闭ipv6的防火墙:
chkconfig ip6tables off
并且可以通过如下命令查看状态:
chkconfig --list iptables
b. selinux状态可以通过以下命令查看:
sestatus
http://blog.chinaunix.net/uid-11582448-id-3157977.html
相关文章推荐
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- (转)Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- redhat7 centos7 关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭防火墙和SELinux方法
- Redhat关闭SELinux和防火墙
- hadoop环境搭建之关闭防火墙和SELinux
- CentOS 7 关闭防火墙 SELinux , FireWalld
- CentOS7关闭防火墙和SELinux
- Linux 下SElinux以及防火墙的关闭
- Redhat Enterprise Linux中如何关闭SELinux?
- Centos7 配置固定IP与关闭防火墙--关闭SELinux