Linux关闭防火墙

时间:2020-04-03 15:25:15   收藏:0   阅读:57

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
 
返回目录

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!