1.查看防火墙
[root@localhost ~]# systemctl status firewalld
这表示防火墙是开启状态
2.临时关闭防火墙
临时关闭防火墙后,下次开机又会恢复到开启状态。
[root@localhost ~]# systemctl stop firewalld
3.永久关闭防火墙
[root@localhost ~]# systemctl disable firewalld
这表示永久关闭防火墙
[root@localhost ~]# systemctl status firewalld
这表示防火墙是开启状态
临时关闭防火墙后,下次开机又会恢复到开启状态。
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
这表示永久关闭防火墙