首页 > 系统服务 > 详细

Linux关闭防火墙

时间:2020-04-03 15:25:15      阅读:53      评论:0      收藏:0      [点我收藏+]

1.Centos 7

  关闭防火墙:systemctl stop firewalld

  打开防火墙:systemctl start firewalld

  查看防火墙开启信息:systemctl status firewalld

  关闭开机启动防火墙:systemctl disable ffirewalld

  关闭状态查询:

  技术分享图片 

  开启状态查询:

  技术分享图片 

 2.Centos6

  查看防火墙状态:service iptables status

  停止防火墙:service iptables stop
  启动防火墙:service iptables start
  重启防火墙:service iptables restart
  永久关闭防火墙:chkconfig iptables off
  永久关闭后重启:chkconfig iptables on
 

Linux关闭防火墙

原文:https://www.cnblogs.com/dan2/p/12625588.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!