C6:chkconfig iptables on
C7:systemctl enable firewalld
二、启动流程不同
1、CentOS 6(顺序启动)
0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
3 - Full multiuser mode 命令行模式
4 - unused
5 - X11 桌面模式
6 - reboot(Do NOT set initdefault to this)