随笔:ubuntu启动慢,检查启动项,缩短启动时间
ubuntu开机慢,检查开机启动项,以及各项所占用的时间,命令:
systemd-analyze blame
一般是networking.service耗时长。详细情况还是查看上面命令输出结果。
以下是解决networking.service耗时长的方法,输入命令:
/lib/systemd/system/networking.service
sudo vim /lib/systemd/system/networking.service
在文件中,找到TimeoutStartSec(最后一行),将其值修改为=10s(原为5min)即可
TimeoutStartSec=10s

本文介绍如何通过调整networking.service配置来减少Ubuntu系统的启动时间。通过修改TimeoutStartSec参数,可以显著缩短networking服务的启动耗时。
2393

被折叠的 条评论
为什么被折叠?



