centos6系统,开启:chkconfig iptables on 关闭:chkconfig iptables off
centos7系统,开启:systemctl enable firewalld 关闭:systemctl disable firewalld
centos6系统,开启:service iptables start 关闭:service iptables stop
centos7系统,开启:systemctl start firewalld 关闭:systemctl stop firewalld