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

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

  • 查看防火墙状态

  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

版权声明:本文为moaiwa原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/moaiwa/p/12795702.html