1 查看防火牆狀態
[root@lvxinghao ~]# systemctl status firewalld
2 查看開機是否啟動防火牆服務
[root@lvxinghao ~]# systemctl is-enabled firewalld
3 關閉防火牆
[root@lvxinghao ~]# systemctl stop firewalld
[root@lvxinghao ~]# systemctl status firewalld
4 禁用防火牆(系統啟動時不啟動防火牆服務)
[root@lvxinghao ~]# systemctl disable firewalld
[root@lvxinghao ~]# systemctl is-enabled firewalld