Centos7 升级内核
添加 elrepo 源
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
安装 Kernel
yum --enablerepo=elrepo-kernel install kernel-ml
查看启动项
cat /boot/grub2/grub.cfg | grep menuentry
设默认启动项
grub2-set-default 'CentOS Linux (4.19.8-1.el7.elrepo.x86_64) 7 (Core)'
重启
reboot
移除老旧内核
yum remove -y kernel-3.10.0-957.el7.x86_64