# 关闭防火墙 echo "正在关闭防火墙。。。" service iptables stop if [ $? -eq 0 ]; then echo "防火墙已关闭!" else echo "关闭防火墙失败!" exit; fi # 禁用防火墙 chkconfig iptables off echo "防火墙开机自启动已关闭!"