随笔: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