centos6关闭selinux和防火墙
2016-08-15 15:22
453 查看
#vi /etc/selinux/config
将文件里标红的部分改为disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
重启后永久关闭selinux
#sestatus -v
这个命令可以查看selinux的状态
#setenforce 0
这个命令可以临时关闭selinux
#service iptables stop
#service ip6tables stop
这个命令可以临时关闭防火墙
#chkconfig iptables off
#chkconfig ip6tables off
这个命令可以永久关闭防火墙
#chkconfig iptables --list
#chkconfig ip6tables --list
这个命令可以查看防火墙的状态
将文件里标红的部分改为disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
重启后永久关闭selinux
#sestatus -v
这个命令可以查看selinux的状态
#setenforce 0
这个命令可以临时关闭selinux
#service iptables stop
#service ip6tables stop
这个命令可以临时关闭防火墙
#chkconfig iptables off
#chkconfig ip6tables off
这个命令可以永久关闭防火墙
#chkconfig iptables --list
#chkconfig ip6tables --list
这个命令可以查看防火墙的状态
相关文章推荐
- linux 与winscp /SecureCRT 链接关闭防火墙以及selinux问题
- Linux FTP 服务器配置简单说明【从防火墙关闭到关闭selinux-sestatus到配置ftp用户访问的数据目录再到添加一个ftp用户】
- 如何关闭selinux和防火墙
- CentOS 关闭SELINUX及添加防火墙规则
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- centos6和centos7防火墙的关闭
- Centos7 配置固定IP与关闭防火墙--关闭SELinux
- CentOS 7 关闭防火墙 SELinux , FireWalld
- SElinux以及防火墙的关闭
- ubantu 14 关闭防火墙 SELinux
- CentOS7关闭防火墙和SELinux
- centos6和centos7防火墙的关闭
- Linux 下SElinux以及防火墙的关闭
- 关闭selinux和防火墙开启状态增加3306端口
- hadoop环境搭建之关闭防火墙和SELinux
- linux关闭selinux防火墙
- centos 6.x 关闭防火墙和selinux
- SElinux以及防火墙的关闭
- Centos7 关闭防火墙和selinux