CentOS升级kernel

Posted 杨佳楠丶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS升级kernel相关的知识,希望对你有一定的参考价值。

CentOS升级kernel

升级命令:

1 yum update kernel
2 yum update kernel-devel
3 yum update kernel-firmware
4 yum update kernel-headers

查看内核版本命令:

1 uname -r

Linux 内核配置文件:

 1 [[email protected] ~]# cat /etc/grub.conf
 2 # grub.conf generated by anaconda
 3 #
 4 # Note that you do not have to rerun grub after making changes to this file
 5 # NOTICE:  You do not have a /boot partition.  This means that
 6 #          all kernel and initrd paths are relative to /, eg.
 7 #          root (hd0,0)
 8 #          kernel /boot/vmlinuz-version ro root=/dev/vda1
 9 #          initrd /boot/initrd-[generic-]version.img
10 #boot=/dev/xvda
11 default=0
12 timeout=5
13 splashimage=(hd0,0)/boot/grub/splash.xpm.gz
14 hiddenmenu
15 title CentOS (2.6.32-696.23.1.el6.x86_64)
16     root (hd0,0)
17     kernel /boot/vmlinuz-2.6.32-696.23.1.el6.x86_64 ro root=UUID=94e4e384-0ace-437f-bc96-057dd64f42ee rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
18     initrd /boot/initramfs-2.6.32-696.23.1.el6.x86_64.img
19 title CentOS (2.6.32-696.10.1.el6.x86_64)
20     root (hd0,0)
21     kernel /boot/vmlinuz-2.6.32-696.10.1.el6.x86_64 ro root=UUID=94e4e384-0ace-437f-bc96-057dd64f42ee rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
22     initrd /boot/initramfs-2.6.32-696.10.1.el6.x86_64.img

default=0 这个就是制定选择那个版本的内核。 
title默认的是0开始,选择对应的版本后,reboot。

以上是关于CentOS升级kernel的主要内容,如果未能解决你的问题,请参考以下文章

centos7.4系统升级kernel内核

centos8.2升级kernel

centos7升级kernel之后,vmware无法打开

CentOS7升级内核kernel5.0

centos 6 linux 内核kernel升级

centos 升级内核并安装对应kernel-devel