Linux minimal启动慢可按以下方法优化:
/etc/default/grub
,将GRUB_TIMEOUT
设为0或2,添加nomodeset
参数禁用显卡驱动(若需图形界面可去掉),更新GRUB后重启。systemd-analyze blame
找出耗时服务,通过sudo systemctl disable <服务名>
禁用非必要服务。make menuconfig
(需重新编译内核)减少冗余驱动。sudo systemctl set-default multi-user.target
禁用图形界面启动(若无需图形)。