|
问题现象
系统启动缓慢,开机后需要较长时间才能正常使用 解决方案 1.分析启动时间 - # 查看系统启动时间
- systemd-analyze
- # 查看各服务启动时间
- systemd-analyze blame
复制代码2.禁用不必要的启动服务 - # 查看所有启动服务
- systemctl list-unit-files --type=service --state=enabled
- # 禁用不必要的服务
- sudo systemctl disable bluetooth.service
- sudo systemctl disable cups.service
复制代码3.优化内核启动参数 - # 编辑grub配置
- sudo nano /etc/default/grub
复制代码修改参数: - text
- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash profile"
复制代码4.使用并行启动优化 - # 检查当前启动目标
- systemctl get-default
- # 设置优化启动目标
- sudo systemctl set-default multi-user.target
复制代码
|
|
|
|
|
|
|
|
版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报