環境 Ubuntu 18.04 desktop
開機啟動在5分鍾左右,很慢
開機后輸入以下命令,查看service消耗時間:
systemd-analyze blame
結果顯示我的 networking.service 消耗了4分半鍾
解決方法,縮短timeout時間:
sudo gedit /lib/systemd/system/networking.service
將TimeoutStartSec設置為你想要的時間,我的是TimeoutStartSec=10s
再重啟就正常了!