linux关闭iptables组建
来源:互联网 发布:windows find 精确匹配 编辑:程序博客网 时间:2024/06/05 04:16
linux服务器下防火墙为iptables组件,在安装一些软件的时候,iptables防火墙会阻止我们一些必要的连接,所以,我代购的美国服务器,荷兰服务器等海外服务器iptables初始状态为关闭。如果有一些服务器没有关闭iptables,并且你还特别想关闭它,哪么以下命令,你可以能用的上。
查看iptables状态:
service iptables status
查看iptables状态
(从图中可以看到,我的服务iptables是已经关闭的,如果你的是开启状态,你可以通过一下命令关闭) www.2cto.com
iptables开机自动启动:
开启: chkconfig iptables on
关闭: chkconfig iptables off
iptables关闭服务:
开启: service iptables start
关闭: service iptables stop
关闭selinux服务
#vi /etc/selinux/config
将文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0注:setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式
在lilo或者grub的启动参数中增加:selinux=0,也可以关闭selinux
#---------------------------------------------------------------
查看selinux状态:
/usr/bin/setstatus -v如下:SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 21
getenforce/setenforce查看和设置SELinux的当前工作模式
将文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0注:setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式
在lilo或者grub的启动参数中增加:selinux=0,也可以关闭selinux
#---------------------------------------------------------------
查看selinux状态:
/usr/bin/setstatus -v如下:SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 21
getenforce/setenforce查看和设置SELinux的当前工作模式
0 0
- linux关闭iptables组建
- LINUX:如何关闭iptables
- CentOS linux关闭iptables防火墙(Linux中的防火墙叫iptables)
- linux 永久关闭 防火墙 service iptables save
- linux iptables 端口 查看,打开,关闭
- RHEL6 iptables 彻底关闭linux防火墙
- Linux防火墙(Iptables)的开启与关闭
- linux 关闭selinux安全验证和iptables
- linux防火墙(iptables)的开启与关闭
- linux启动及关闭iptables(ubuntu/centos)
- Linux防火墙(iptables)关闭与开启配置
- linux iptables关闭/开启 启用/禁用
- Linux防火墙iptables的启动与关闭
- Linux防火墙(Iptables)的开启与关闭
- linux iptables开放/关闭端口命令
- Linux SElinux以及iptables的关闭
- Linux防火墙(Iptables)的开启与关闭
- 关闭iptables
- 游戏类APP应用周末下载量达最高
- GoldenGate------Oracle 10g to Mysql 5.6
- BASH命令行基本操作
- CPU寄存器变量
- socket阻塞与非阻塞,同步与异步
- linux关闭iptables组建
- web site 和 web application的区别
- Android DEX安全攻防战
- php——学习笔记,include,require,include_once,require_once引用文件时的异同
- poj 1986 tarjan/rmq(LCA问题)
- JAVA四种引用方式
- GetImageSize获取图片的尺寸
- php的header函数之设置content-type
- hdu 1084 What Is Your Grade?