service iptables stop --关闭命令
chkconfig iptables off --永久关闭防火墙
两个命令同时运行,运行完成后查看防火墙关闭状态
service iptables status
firewall-cmd --state --查看防火墙状态
systemctl stop firewalld.service --关闭防火墙
systemctl disable firewalld.service
原文:https://www.cnblogs.com/joeyJss/p/14754360.html