您当前的位置: 首页 >  centos
  • 1浏览

    0关注

    212博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Centos7 升级内核版本

杰哥的技术杂货铺 发布时间:2021-04-14 14:36:33 ,浏览量:1

1、查看内核版本

首先查看本机的系统内核版本,如果低于5.x即可使用本步骤进行升级


[root@localhost tools]# uname -r

3.10.0-693.2.2.el7.x86_64

[root@localhost tools]#
2、准备升级文件

下载内核升级包

http://www.rpmfind.net/linux/fedora/linux/updates/30/Everything/x86_64/Packages/k/kernel-5.5.8-100.fc30.x86_64.rpm
3、安装升级包
[root@localhost tools]# rpm -Uvh kernel-5.5.4-1.el7.x86_64.rpm
4、修改默认启动

[root@localhost tools]# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg

[root@localhost tools]# grub2-set-default 0

[root@localhost tools]# grub2-mkconfig -o /boot/grub2/grub.cfg

[root@localhost tools]# reboot
5、重启后再次查看内核版本

可看到服务器内核版本已升级为5.5.4版本

[root@localhost tools]# uname -r
5.5.4-1.el7.elrepo.x86_64
关注
打赏
1666063422
查看更多评论
立即登录/注册

微信扫码登录

0.0355s