systemd-analyze

分析启动耗时、unit 依赖与安全配置

补充说明

systemd-analyze 可以看启动总耗时、各服务耗时、关键链路、unit 依赖图,以及 unit 的安全评分和配置校验。

常用示例

systemd-analyze
systemd-analyze blame | head
systemd-analyze critical-chain
systemd-analyze verify /etc/systemd/system/app.service
systemd-analyze security app.service

易错点与排错