开机耗时超过5mins
开机耗时长
1、查看耗时排行
systemd-analyze blame
2、修改网络服务的配置
sudo vim /lib/systemd/system/networking.service
root权限下,将TimeoutStartSec(默认是5min),改小,wq
3、若不需要网络服务,亦可将其关闭
sudo systemctl mask networking.service
其它服务的停止使用
sudo systemctl disable xxx
"systemctl mask"和"systemctl disable"有什么区别?
关机卡在 ubuntu界面
sudo vim /etc/systemd/system.conf
将DefaultTimeoutStartSec与DefaultTimeoutStopSec取消注释,并把时间改小(默认是90s),保存退出(wq)。
重启,此刻尽丝滑~