麒麟快速启动方案

1、背景介绍

目前在做的项目中需要对操作系统进行快速启动,由于选择的是银河麒麟操作系统,故下文是针对该操作系统的启动优化,其他操作系统可以参考。

 

2、修改菜单等待时间

首先修改/boot/grub/grub.cfg中的timeout,全部改为0

 

然后修改/etc/grub.d/30_os-prober中的timeout,也全部改为0

 

3、安装麒麟操作系统验证deb

安装目录下的验证包后能在启动时跳过系统验证

进入目录执行 dpkg –i *.deb

 

4、关闭不必要的服务

可以关闭的服务如下:

systemctl disable lvm2-monitor.service

systemctl disable accounts-daemon.service

systemctl disable lm-sensors.service

systemctl disable kylin-dmesg.service

systemctl disable cups.path

systemctl disable cups-browsed.service

systemctl disable cups.service

systemctl disable NetworkManager-wait-online.service

systemctl disable remote-fs.target

systemctl disable lvm2-lvmetad.socket

systemctl disable lvm2-lvmpolld.socket

systemctl disable kylin-activation-check.service

systemctl disable apt-daily.timer

systemctl disable pppd-dns.service

 

下面列出系统中启动的服务和关闭的服务

 

 

 

全部优化后启动时间为10s

 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值