首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Linux关闭防火墙

Linux关闭防火墙

作者头像
cywhat
发布于 2022-11-22 21:21:18
发布于 2022-11-22 21:21:18
11.7K0
举报
文章被收录于专栏:cywhatcywhat

注意:ConterOS7.0以上使用的是firewall,ConterOS7.0以下使用的是iptables

1.查看防火状态

代码语言:shell
复制
systemctl status firewalld  #7.0以上

service  iptables status  #7.0以下

2.暂时关闭防火墙

代码语言:shell
复制
syatemctl stop firewalld     #7.0以上

service  iptables stop      #7.0以下

3.永久关闭防火墙

代码语言:shell
复制
systemctl disable firewalld    #7.0以上

chkconfig iptables off     #7.0以下

4.重启防火墙

代码语言:shell
复制
systemctl enable firewalld  #7.0以上

service iptables restart  #7.0以下
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-09-01,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 1.查看防火状态
  • 2.暂时关闭防火墙
  • 3.永久关闭防火墙
  • 4.重启防火墙
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档