moaiwa

服务器重启后防火墙会自动开启,需要把防火墙关闭

以下为对防火墙进行的相关操作

  • 查看防火墙状态

  systemctl status firewalld

  service iptables status

  • 暂时关闭防火墙

  systemctl stop firewalld

  service iptables stop

  • 永久关闭防火墙

systemctl distable firewalld

chkconfig iptables off

  • 重启防火墙

systemctl enable firewalld

service iptables restart

  • 永久关闭后重启

chkconfig iptables on

分类:

技术点:

相关文章: