jtlgb

CentOS 7 默认使用的是firewall作为防火墙

关闭firewall:

systemctl stop firewalld.service  #停止firewall

systemctl disable firewalld.service  #禁止firewall开机启动

systemctl restart iptables.service #最后重启防火墙使配置生效

systemctl enable iptables.service #设置防火墙开机启动

firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

posted on 2019-01-24 13:26  jtlgb  阅读(113)  评论(0编辑  收藏  举报

分类:

技术点:

相关文章:

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