Disclaimer: This article is a blogger original article, reprinted need to add a description link. https://blog.csdn.net/makenothing/article/details/86985997
Here is red hat / CentOs7 turn off the firewall command
1: View the status of fire
systemctl status firewalld
service iptables status
2: Temporarily turn off the firewall
systemctl stop firewalld
service iptables stop
3: Permanently turn off the firewall
systemctl disable firewalld
chkconfig iptables off
4: Restart the firewall
systemctl enable firewalld
service iptables restart
5: permanently closed after restart