Home > Article > Operation and Maintenance > How to turn off centos system firewall
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 offor
#chkconfig iptables offwhere 2345 represents "execution level" Level 0 means: shutdown Level 1 means: single-user modeLevel 2 means: multi-user command line mode without network connectionLevel 3 means: multi-user command line mode with network connectionLevel 4 means: UnavailableLevel 5 means: Multi-user mode with graphical interfaceLevel 6 means: RestartRelated tutorial recommendations:
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!