1. Service mode
Check the firewall status:
[root@centos6 ~]# service iptables status iptables:未运行防火墙。
Recommended tutorial: linux tutorial
2. iptables method
First enter the init.d directory, the command is as follows:
[root@centos6 ~]# cd /etc/init.d/ [root@centos6 init.d]#
Then check the firewall status:
[root@centos6 init.d]# /etc/init.d/iptables status
Recommended related video tutorials: linux video tutorial
The above is the detailed content of How to check whether the firewall is turned off in Linux. For more information, please follow other related articles on the PHP Chinese website!