首页 > 系统相关 >CentOS升级内核

CentOS升级内核

时间:2023-02-20 20:57:03浏览次数:61  
标签:x86 CentOS -- elrepo el7 升级 64 内核 class

先下载yum文件

https://elrepo.org

$ wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-5.19.0-1.el7.elrepo.x86_64.rpm 
$ wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-devel-5.19.0-1.el7.elrepo.x86_64.rpm

然后用yum安装

$ yum install -y kernel-ml-5.19.0-1.el7.elrepo.x86_64.rpm kernel-ml-devel-5.19.0-1.el7.elrepo.x86_64.rpm

修改默认启动内核

$ grub2-set-default "CentOS Linux (5.19.0-1.el7.elrepo.x86_64) 7 (Core)" && grub2-editenv list && reboot

这里的"CentOS Linux (5.19.0-1.el7.elrepo.x86_64) 7 (Core)"的来源

查看grub2.cfg文件中的菜单选项

$ cat /etc/grub2.cfg  | grep ^menuentry
menuentry 'CentOS Linux (5.19.0-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-f91013a2-1343-4db4-aa1b-9b4fb2dd33e1' {
menuentry 'CentOS Linux (3.10.0-1160.62.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-f91013a2-1343-4db4-aa1b-9b4fb2dd33e1' {
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-f91013a2-1343-4db4-aa1b-9b4fb2dd33e1' {
menuentry 'CentOS Linux (0-rescue-3fb22f959f1345f2811ee97512699276) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-3fb22f959f1345f2811ee97512699276-advanced-f91013a2-1343-4db4-aa1b-9b4fb2dd33e1' {

重启后查看

$ uname -a
Linux CentOS7906 5.19.0-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jul 31 19:04:17 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

标签:x86,CentOS,--,elrepo,el7,升级,64,内核,class
From: https://www.cnblogs.com/guangdelw/p/17138876.html

相关文章

  • Yum系列系统升级python版本
    问题描述系统可能携带的是python3.6,而自动化开发基线是python3.7就会导致部分包无法使用等问题升级python3.7查看当前系统python版本ls-al/usr/bin|greppython......
  • django的部署在centos
    虚拟环境#virtualenv是一个创建独立python环境的工具sudopipinstallvirtualenv#virtualenvwrapper将所有的虚拟环境统一管理,留意安装路径后面要用sudopipinstall......
  • CentOS搭建Yunzai-Bot原神机器人
    Yunzai-Bot是目前使用较多的原神查询机器人,搭建也较为简单。现为Linux用户做一下Yunzai-Bot的搭建教程,这里以CentOS7系统为例。安装Node.js下载地址:https://node......
  • WindowS 平台下单实例Oracle 11.2.0.1 升级Oracle 11.2.0.4
     由于业务环境需要,只有11.2.0.4可以直接升级19C,所以现需先升级到11.2.0.4主要步骤如下:备份数据,RMAN全备,必要的话建议拷贝一份HOME目录;下载升级包11.2.0.4关闭数据库,包括监......
  • jenkins 升级后无法启动
    RunningwithJava8fromD:\jenkins\jre,whichisolderthantheminimumrequiredversion(Java11)意思是jdk版本太低,至少需要11 一下载并安装Jdk11https:/......
  • CentOS 7 安装PostgrelSQL-11
    sudoyuminstall-yhttps://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmsudoyuminstall-ypostgresql11-ser......
  • centos7编译安装python3
    1.安装依赖yum-yinstallzlib-develbzip2-developenssl-develncurses-develsqlite-develreadline-develtk-develgccmakelibffi-devel2.下载软件包wgeth......
  • Centos运行.net core程序的多种方式以及相互之间的区别。
     nohupdotnet/www/wwwroot/xxx.dll--urls"http://*:6001;http://*:6002"&此时候的6001和6002端口对应的程序的内存和static变量都是存在同一个堆栈里面,可以做缓存。......
  • centos6-语言支持
    问题描述在中过绝大多数centos的编码都是(en_US.utf8),极少数情况下是中文编码(zh_CN.utf8zh_TW.utf8)不过还是建议,使用默认的语言编码。问题解决envcentos6.8loca......
  • Centos7系统编译Hadoop3.3.4
    1、背景最近在学习hadoop,此篇文章简单记录一下通过源码来编译hadoop。为什么要重新编译hadoop源码,是因为为了匹配不同操作系统的本地库环境。2、编译源码2.1下载并解压......