Redhat关闭SELinux和防火墙的办法
来源:互联网 发布:软件开发项目周报范文 编辑:程序博客网 时间:2024/05/14 10:26
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
0 0
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- Redhat关闭SELinux和防火墙的办法
- (转)Redhat关闭SELinux和防火墙的办法
- redhat linux关闭防火墙和禁用selinux
- redhat7 centos7 关闭SELinux和防火墙的办法
- 关闭SELinux和防火墙
- 如何关闭selinux和防火墙
- centos6关闭selinux和防火墙
- CentOS7关闭防火墙和selinux
- Centos7 关闭防火墙和selinux
- VMWare虚拟机提示:“锁定文件失败,打不开磁盘或快照所依赖的磁盘”的解决方法
- iOS 保持界面流畅的技巧
- Missing separate debuginfos, use: debuginfo-install...
- android 安装后文件结构和文件存储方式
- iphone切换不同的环境
- Redhat关闭SELinux和防火墙的办法
- 电容触摸按键原理
- C# AES
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- 第九周项目3-稀疏矩阵的三元组表示的实现及应用(1)
- 坚持#第77天~不迟到反而早到!
- 使用DOS环境下运行java程序
- UVa227:Puzzle
- Android开发:最详细的 NavigationDrawer 开发实践总结