centOs6.5
service iptables status 查看防火墙状态
service iptables stop 临时关闭
chkconfig iptables off 永久关闭
centOs7
stop/start/restart/status/enable/disable/
firewall-cmd --state 查看防火墙状态
systemctl stop firewalld.service 关闭防火墙
systemctl disable firewalld.service 禁止开机启动
systemctl stop|start|status firewalld
网友评论