分享

麒麟OS系统启动服务优化?开机速度提升方案

问题现象
系统启动缓慢,开机后需要较长时间才能正常使用
解决方案
1.分析启动时间
  1. # 查看系统启动时间
  2. systemd-analyze
  3. # 查看各服务启动时间
  4. systemd-analyze blame
复制代码
2.禁用不必要的启动服务
  1. # 查看所有启动服务
  2. systemctl list-unit-files --type=service --state=enabled
  3. # 禁用不必要的服务
  4. sudo systemctl disable bluetooth.service
  5. sudo systemctl disable cups.service
复制代码
3.优化内核启动参数
  1. # 编辑grub配置
  2. sudo nano /etc/default/grub
复制代码
修改参数:
  1. text
  2. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash profile"
复制代码
4.使用并行启动优化
  1. # 检查当前启动目标
  2. systemctl get-default
  3. # 设置优化启动目标
  4. sudo systemctl set-default multi-user.target
复制代码


版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系在线客服