关闭防火墙:service iptables stop 永久关闭防火墙:chkconfig iptables off查看防火墙状态:service iptables statuscentOS版本不同,命令也不同。