centos更换内核
导入仓库索引密钥并下载仓库索引
1 | #导入仓库索引 |
查找可用的linux内核
1 | yum --disablerepo="*" --enablerepo="elrepo-kernel" list available |
安装最新版本的主线内核
1 | yum --enablerepo=elrepo-kernel install kernel-ml |
重新生成grub配置文件
1 | grub2-mkconfig -o /boot/grub2/grub.cfg |
设置默认的启动内核
1 | cat /boot/grub2/grub.cfg |grep menuentry#查找可用的grub配置菜单参数 |
参考:https://blog.csdn.net/qq_38591756/article/details/82829398