最近准备在Centos上安装K8s,感觉内核版本需要高点,故升级!
1,备份grub.cfg
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg_bak
2,
sed -i ‘s/rhgb quiet/quiet/g‘ /boot/grub2/grub.cfg
3,
rpm -ivh kernel-ml-4.19.9-1.el7.elrepo.x8664.rpm
4,
cat /boot/grub2/grub.cfg |grep menuentry
grub2-set-default "CentOS Linux (4.19.9-1.el7.elrepo.x86_64) 7 (Core)"
grub2-editenv list
yum -y install perl
rpm -ivh kernel-ml-devel-4.19.8-1.el7.elrepo.x8664.rpm
备注:这两个内核文件,在我的阿里云仓库保存~
原文地址:https://blog.51cto.com/13182370/2447818
时间: 2024-11-09 00:46:42