檢視防火牆狀態
systemctl status firewalld
啟動防火牆
systemctl start firewalld
停止防火牆
systemctl stop firewalld
檢視防火牆已經開放的埠
firewall-cmd --list-port
新增開放指定埠
firewall-cmd --zone=public --add-port=這裡是需要開啟的埠號/tcp --permanent
重新載入防火牆
firewall-cmd --reload