Centos防火墙关闭


1. 查看防火墙状态

systemctl status firewalld.service

执行后可以看到绿色字样标注的“active(running)”,说明防火墙是开启状态

关闭运行的防火墙

systemctl stop firewalld.service

查看防火墙状态

systemctl status firewalld.service

可以看到,disavtive(dead)的字样,说明防火墙已经关闭

永久关闭防火墙

systemctl disable firewalld.service


文章作者: 一剑潇
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 一剑潇 !
  目录
{% if theme.mermaid.enable %} {% endif %}