6

centos7安装高版本内核

 2 years ago
source link: https://www.bboy.app/2022/02/22/centos7%E5%AE%89%E8%A3%85%E9%AB%98%E7%89%88%E6%9C%AC%E5%86%85%E6%A0%B8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

centos7安装高版本内核

发表于 2022-02-22

更新于 2022-02-24

分类于

linux

20220222-1.png

单纯记录下

首先安装elrepo源

yum install elrepo-release -y

之后安装内核

yum makecache

yum --enablerepo=elrepo-kernel install -y kernel-lt

看下目前系统中存在的内核

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/grub2/grub.cfg

替换默认内核

yum install -y grub2-pc

grub2-set-default 0

vim /etc/default/grub

GRUB_DEFAULT=saved GRUB_DEFAULT=0

grub2-mkconfig -o /boot/grub2/grub.cfg

然后重启服务器

reboot

欢迎关注我的博客www.bboy.app

Have Fun

欢迎关注我的其它发布渠道


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK