網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
一、CentOS 7.9 升級(jí)內(nèi)核 kernel-ml-5.6.14版本
地址
http://193.49.22.109/elrepo/kernel/el7/x86_64/RPMS
默認(rèn)內(nèi)核版本為3.10.0,現(xiàn)升級(jí)到 5.6.14 版本
查看當(dāng)前內(nèi)核版本
[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
wget http://193.49.22.109/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-devel-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 software]# rpm -ivh kernel-ml-devel-5.6.14-1.el7.elrepo.x86_64.rpm
warning: kernel-ml-devel-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-devel-5.6.14-1.el7.elre################################# [100%]
查看當(dāng)前內(nèi)核
[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' {
設(shè)置啟動(dòng)內(nèi)核
[root@ecs-65685 ~]# grub2-set-default 0
# 或者
grub2-set-default 'CentOS Linux (5.6.14-1.el7.elrepo.x86_64) 7 (Core)'
重新生成一個(gè)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
重啟系統(tǒng)
[root@ecs-65685 ~]# reboot
確認(rèn)下是否啟動(dòng)默認(rèn)內(nèi)核指向上面安裝的內(nèi)核
[root@ecs-65685 ~]# grubby --default-kernel
/boot/vmlinuz-5.6.14-1.el7.elrepo.x86_64
確認(rèn)使用的內(nèi)核版本
uname -r
原文鏈接:https://www.cnblogs.com/huaxiayuyi/p/16788084.html
相關(guān)推薦
- 2022-02-12 小程序和H5怎么讓文本只顯示兩行!超出后以...省略號(hào)顯示!
- 2022-08-13 electron功能實(shí)現(xiàn)---添加全局快捷鍵、開機(jī)自啟、選擇安裝路徑
- 2022-02-25 Linux下安裝Hadoop集群詳細(xì)步驟_Linux
- 2023-10-24 記ElementUI內(nèi)置的$confirm確認(rèn)消息彈框方法
- 2022-07-13 Python字符串中如何去除數(shù)字之間的逗號(hào)_python
- 2022-05-06 Docker遠(yuǎn)程連接設(shè)置的實(shí)現(xiàn)示例_docker
- 2022-09-16 C++如何實(shí)現(xiàn)BitMap數(shù)據(jù)結(jié)構(gòu)_C 語(yǔ)言
- 2024-02-16 SpringBoot 事務(wù)的屬性rollbackFor 與 propagetion
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過(guò)濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支