linux开机启动慢如何处理?

<h1>systemd-analyze</h1><p>systemd-analyze是一个分析启动性能的工具,用于分析启动时服务时间消耗。</p><h1>查看耗时服务</h1><p/><p class="image-package"><img class="uploaded-img" src="https://upload-images.jianshu.io/upload_images/19800061-28fa9aa0920a882b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><h1>禁止耗时服务
</h1><p>systemctl disable NetworkManager</p><h1>其他处理办法</h1><p class="image-package">有时候不能一删了之,就需要细致分析服务内部启动慢的原因。</p><p>systemd-analyze critical-chain NetworkManager-wait-online.service</p><p class="image-package"><img class="uploaded-img" src="https://upload-images.jianshu.io/upload_images/19800061-45afe8c3ca1ca592.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><p>修改timeout时间为更小的等待时长
</p><h1/>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容