1、打開防火墻
systemctl start firewalld
2、關(guān)閉防火墻
systemctl stop firewalld
systemctl stop firewalld.service
3、查看防火墻狀態(tài)
systemctl status firewalld
systemctl status firewalld.service
4、啟用防火墻
systemctl enable firewalld
5、禁用防火墻(禁止防火墻開機(jī)自啟動(dòng))
systemctl disable firewalld
systemctl disable firewalld.service