离线跟新centos内核
内核下载地址
https://linux.cc.iitk.ac.in/mirror/centos/elrepo/kernel/el7/x86_64/RPMS/
rpm -ivh *.rpm
检查内核
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/grub2/grub.cfg
sed -i 's/GRUB_DEFAULT.*/GRUB_DEFAULT=0/g' /etc/default/grub
重新生成grub文件
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
uname -a
https://blog.csdn.net/qn0007/article/details/140018597