Ubuntu 18 开机启动慢
1、通过指令分析
# sudo systemd-analyze blame
39.607s mysql.service
25.194s systemd-journal-flush.service
23.985s dev-sda1.device
19.144s apparmor.service
16.256s dev-loop35.device
16.130s dev-loop39.device
16.116s dev-loop38.device
16.044s dev-loop36.device
15.764s dev-loop40.device
15.441s dev-loop34.device
15.409s dev-loop33.device
15.320s snapd.service
15.295s dev-loop37.device
15.249s dev-loop23.device
15.246s dev-loop31.device
15.213s dev-loop32.device
14.647s dev-loop30.device
14.635s dev-loop21.device
14.553s dev-loop24.device
14.487s dev-loop17.device
14.346s dev-loop22.device
14.169s dev-loop25.device
13.905s dev-loop29.device
2、关闭不需要的服务
#sudo sysv-rc-conf