系统
CentOS 7.9
升级内核
- 安装ELRepo源
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum -y install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
- 升级内核
yum -y install yum-utils
yum-config-manager --enable elrepo-kernel
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
yum -y install kernel-lt
- 配置GRUB
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
grub2-set-default 0
- 重启生效
reboot
验证
uname -a
网友评论