电脑疯子技术论坛|电脑极客社区

 找回密码
 注册

QQ登录

只需一步,快速开始

[linux教程] Linux/RedHat 6.4 关闭系统自带防火墙

[复制链接]
zhaorong 发表于 2017-12-1 15:48:50 | 显示全部楼层 |阅读模式

第一次使用RedHat很多不熟悉的地方,记录下:

检查状态:

service iptables status

停止服务:

service iptables stop

查看防火墙服务:

chkconfig --list | grep iptables

关闭状态为“开启”的:

chkconfig --level 2345 iptables off

同时关闭IP6的:

chkconfig --level 2345 ip6tables off

再次检查是否都关闭:

chkconfig --list | grep iptables
chkconfig --list | grep ip6tables


还需要修改一个设置:

vi /etc/selinux/config

注释掉原来 SELINUX= 开头的一行,重新加入以下内容:

SELINUX=disabled

保存,重启服务器。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )

GMT+8, 2025-2-2 21:57

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表