2.2 关闭防火墙并设置开机开不启动
查看当前状态
[root@xuegod63 ~]# systemctl status firewalld.service #查看firewalld状态
[root@xuegod63 ~]# systemctl stop firewalld #关闭
[root@xuegod63 ~]# systemctl start firewalld #开启
[root@xuegod63 ~]# systemctl disable firewalld #开机自动关闭 //RHLE7
[root@xuegod63 ~]# chkconfig --list|grep network #查看开机是否启动 //RHLE6
[root@xuegod63 ~]# systemctl enable firewalld #开机自动启动