温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

升级Linux系统内核

发布时间:2020-06-28 10:05:20 来源:网络 阅读:255 作者:筱振 栏目:系统运维

有时在服务器上安装一些服务来满足日常需要时,常常因为内核的原因放弃,本篇博文就来解决这个难题。

实施步骤:

[root@localhost ~]# uname -r                  //查看系统内核
3.10.0-862.el7.x86_64
[root@localhost ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
//载入公钥
[root@localhost ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
//安装ELRepo
[root@localhost ~]# yum --disablerepo=\* --enablerepo=elrepo-kernel repolist
//载入elrepo-kernel元数据
[root@localhost ~]# yum --disablerepo=\* --enablerepo=elrepo-kernel list kernel*
//查看可用的rpm包
[root@localhost ~]# yum --disablerepo=\* --enablerepo=elrepo-kernel install -y kernel-ml.x86_64
//安装最新版的kernel

重新启动,就会出现如图:
升级Linux系统内核

[root@localhost ~]# yum -y remove kernel-tools-libs.x86_64 kernel-tools.x86_64 
//删除旧版工具包
[root@localhost ~]# yum --disablerepo=\* --enablerepo=elrepo-kernel install -y kernel-ml-tools.x86_64
//安装新版工具包
[root@localhost ~]# uname -r                 //查看当前系统版本内核
5.4.5-1.el7.elrepo.x86_64
[root@localhost ~]# rpm -qa | grep kernel          //查询系统中的全部内核
[root@localhost ~]# yum remove -y kernel-3.10.0-862.el7.x86_64 
//删除多余内核

重启之后,如图:
升级Linux系统内核

——————————本文到此结束,感谢阅读——————————

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI