red hat / CentOs7 turn off the firewall

 

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

chkconfig iptables on

 

Guess you like

Origin www.cnblogs.com/elfin/p/11427307.html