1、安裝yum install iptables-services #安裝iptables2、systemctl使用systemctl unmask firewalld #執行命令,即可實現取消服務的鎖定systemctl mask firewalld # 下次需要鎖定該服務時執行systemctl start firewalld.service #啟動防火墻systemctl stop firewalld.service #停止防火墻systemctl reloadt firewalld.service #重載配置systemctl restart firewalld.service #重啟服務systemctl status firewalld.service #顯示服務的狀態systemctl enable firewalld.service #在開機時啟用服務systemctl disable firewalld.service #在開機