linux关闭防火墙并设置开机开不启动

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     #开机自动启动

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章