systemctl狀態顯示:“狀態:降級”


當運行步時systemctl status,命令輸出 State: degraded

● x230
    State: degraded
     Jobs: 0 queued
   Failed: 1 units
    Since: Wed 2018-05-30 17:09:49 CDT; 3 days ago
  ....

發生了什么,該如何解決?

 

這意味着您的某些服務無法啟動。如果systemctl;不帶status參數運行就可以看到它們。

他們應該表現出類似的東西,

loaded failed failed

或者,您可以使用systemctl --failed來顯示失敗的服務

  UNIT                        LOAD   ACTIVE SUB    DESCRIPTION                
● postgresql@9.4-main.service loaded failed failed PostgreSQL Cluster 9.4-main

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.


您也可以嘗試:

sudo systemctl reset-failed

systemd重置失敗正在清除失敗的單元。您可以使用systemctl reset-failed命令手動清除故障單元。可以對所有單元或一個單元執行此操作。不再需要的服務最好停止和禁用。

 

 

要更簡潔地回答原始問題:

systemctl | grep fail


免責聲明!

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



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