首页 > 系统相关 >CentOS 7.9 升级内核 kernel-ml-5.6.14版本

CentOS 7.9 升级内核 kernel-ml-5.6.14版本

时间:2022-10-13 14:56:47浏览次数:57  
标签:kernel 5.6 CentOS -- class 64 14 el7 x86

一、CentOS 7.9 升级内核 kernel-ml-5.6.14

地址

默认内核版本为3.10.0,现升级到 5.6.14 版本

查看当前内核版本

[root@localhost ~]# uname -r
3.10.0-1160.53.1.el7.x86_64

wget 下载

wget http://193.49.22.109/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-5.6.14-1.el7.elrepo.x86_64.rpm

安装

[root@ecs-65685 ~]# rpm -ivh kernel-ml-5.6.14-1.el7.elrepo.x86_64.rpm 
warning: kernel-ml-5.6.14-1.el7.elrepo.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
1:kernel-ml-5.6.14-1.el7.elrepo    ################################# [100%]

查看当前内核 

[root@ecs-65685 ~]# cat /boot/grub2/grub.cfg |grep ^menuentry
menuentry 'CentOS Linux (5.6.14-1.el7.elrepo.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-1160.el7.x86_64-advanced-f5954a19-b069-42e4-a6ca-3a1cd06d0735' {
menuentry 'CentOS Linux (3.10.0-1160.53.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-1160.el7.x86_64-advanced-f5954a19-b069-42e4-a6ca-3a1cd06d0735' {
menuentry 'CentOS Linux (3.10.0-1160.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-1160.el7.x86_64-advanced-f5954a19-b069-42e4-a6ca-3a1cd06d0735' {
menuentry 'CentOS Linux (0-rescue-acca19161ce94d449c58923b12797030) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-acca19161ce94d449c58923b12797030-advanced-f5954a19-b069-42e4-a6ca-3a1cd06d0735' {

 设置启动内核

[root@ecs-65685 ~]# grub2-set-default 0
# 或者
grub2-set-default 'CentOS Linux (5.6.14-1.el7.elrepo.x86_64) 7 (Core)'

重新生成一个grub2配置文件

[root@ecs-65685 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.6.14-1.el7.elrepo.x86_64
Found initrd image: /boot/initramfs-5.6.14-1.el7.elrepo.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.53.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.53.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-acca19161ce94d449c58923b12797030
Found initrd image: /boot/initramfs-0-rescue-acca19161ce94d449c58923b12797030.img
done

重启系统

[root@ecs-65685 ~]# reboot

确认使用的内核版本

uname -r

 

标签:kernel,5.6,CentOS,--,class,64,14,el7,x86
From: https://www.cnblogs.com/huaxiayuyi/p/16788084.html

相关文章

  • 阿里云安装CentOS+LAMP环境
    一.更新CONTOS相关仓库1.安装ius仓库yuminstallhttps://centos7.iuscommunity.org/ius-release.rpm2.仓库相关其他命令查看当前系统的资源仓库yumrepolist搜索某个第......
  • CentOS 7.9 安装 Consul_1.9.14
    一、CentOS7.9安装Consul_1.9.14地址https://developer.hashicorp.com/consulhttps://github.com/hashicorp/consul wget下载wgethttps://releases.hashic......
  • CentOS创建用户并追加管理员权限
    sudouseradd-m${用户名}#添加用户sudouseradd-mwork#添加work账户sudopasswd${用户名}#更改密码sudo......
  • CentOS 7.9 安装 kafka_2.13
    一、CentOS7.9安装kafka_2.13地址https://kafka.apache.org/downloads.html 二、安装准备1安装JDK在安装kafka之前必须先安装JDK和zookeeper,如何安装JDK,可......
  • centos7 hbase集群搭建
    Node1 192.168.88.151Node2 192.168.88.152Node3 192.168.88.153三台都要配wget-chttp://archive.apache.org/dist/hbase/2.2.4/hbase-2.2.4-bin.tar.gztar-xzfhb......
  • centos8安装mariadb
    1.  yuminstall-ymariadb-servermariadbmariadb-devel  -------安装2. systemctlstartmariadb  ---启动服务3. mysql_secure_installation---配置服务4.......
  • centos安装vue前端环境
    1、下载node文件https://nodejs.org/en/download/ 2、启动centos容器dockerrun-it-d--nameCentOScentos:centos7   3、把node的文件放到容器里mkdir/......
  • CENTOS安装NGINX报错
    1特别是在CentOS7上安装Nginx,不确定你有什么样的错误(无法打开你的图像/图片),但刚刚在CentOS7上尝试过(大约10分钟前)(VagrantBox"CentOS-7.2-1.8T"),它通过......
  • centos7下Git版本升级
    1.下载需要的版本的git源码wgethttps://github.com/git/git/archive/v2.22.0.tar.gz2.安装编码依赖包yuminstallcurl-develexpat-develgettext-developenssl-dev......
  • CentOS 7 安全基线检查
    注意:操作时建议做好记录或备份1.设置密码失效时间|身份鉴别描述:设置密码失效时间,强制定期修改密码,减少密码被泄漏和猜测风险,使用非密码登陆方式(如密钥对)请忽略此项......