离线跟新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

 

posted @ 2024-08-27 10:55  捌玖  阅读(7)  评论(0编辑  收藏  举报