CentOS升级内核

[root@master1 ~]# uname -r
3.10.0-1160.el7.x86_64


rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum -y install https://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm
# 查看有哪些内核版本可供安装
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
yum --enablerepo="elrepo-kernel" -y install kernel-ml.x86_64
# 设置grub2默认引导为0
grub2-set-default 0
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot


[root@master1 ~]# uname -r
6.1.4-1.el7.elrepo.x86_64
posted @ 2023-01-13 13:33  Linux大魔王  阅读(25)  评论(0编辑  收藏  举报