“服务加载失败”是什么意思?
我如何检查哪些服务失败了?
Services loaded: 232 active: 231 failed: 1
Ubintu 18.04.3
Kernel 5.2.8
答案1
systemd :列出失败的服务
systemctl --state=failed
systemctl -a | grep failed
systemd :列出所有服务
systemctl -a
答案2
尝试 systemctl list-units --state=failed。这将告诉您是否有任何 systemd 控制的组件发生故障。
另外 journalctl -b0 -p 3.这将列出自上次启动以来的错误