CentOS7 啟動 firewalld 防火牆失敗,查看日志提示超時


問題描述

啟動 firewalld systemctl start firewalld 時命令卡住不動不返回,Ctrl+C 取消后,systemctl status firewalld 提示啟動狀態超時,啟動失敗。

問題解決

#關閉firewalld服務
systemctl stop firewalld;
#關閉firewalld進程
pkill -f firewalld;
#啟動firewalld服務
systemctl start firewalld;

到此就正常了。

官方的說法是可能 systemd 不知道自己沒啟動firewalld成功,在那一直等着?

systemd didn’t know about the process that it didn’t start in the first place of course

參考官方博客:https://centosfaq.org/centos/centos-7-firewalldservice-operation-time-out-systemctl-firewalld-issues/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM