View firewall status:
Command:
/etc/init.d/iptables status
Temporary Close the firewall:
Command:
/etc/init.d/iptables stop
Three OKs appear, the shutdown is successful. At this time, the firewall has been closed, and restarting is not allowed to take effect.
Command:
/etc/init.d/iptables status
Check the status after closing, it should show that firewall is not running
##Permanently close the firewall:
Command:#chkconfig --level 2345 iptables off
#chkconfig iptables off
The above is the detailed content of How to turn off centos system firewall. For more information, please follow other related articles on the PHP Chinese website!