centos7上面关闭防火墙

CentOS 7.0默认使用的是firewall作为防火墙;若没有启用iptables 作为防火墙,则使用以下方式关闭防火墙:

systemctl stop firewalld.service

关闭开机启动防火墙:

systemctl disable firewalld.service

查看查状态

firewall-cmd --state

centos7上面关闭防火墙

若已经启用iptables作为防火墙,则使用以下方式关闭:

service iptables stop  #临时关闭防火墙
chkconfig iptables off #永久关闭防火墙

 

posted @ 2019-02-16 11:06 动手的程序员 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2022-02-25
猜你喜欢
  • 2021-11-23
  • 2021-09-25
  • 2021-06-27
  • 2021-09-12
  • 2021-12-06
相关资源
相似解决方案