AFF窝 - 内核 https://www.affwo.com/tag/%E5%86%85%E6%A0%B8/ zh-CN Tue, 15 Sep 2020 22:03:13 +0800 Tue, 15 Sep 2020 22:03:13 +0800 Centos7修改默认启动内核 https://www.affwo.com/261.html https://www.affwo.com/261.html Tue, 15 Sep 2020 22:03:13 +0800 admin 查看系统当前使用的默认启动项:

grub2-editenv list

显示启动内核:

saved_entry=CentOS Linux (3.10.0-1062.4.1.el7.x86_64) 7 (Core)

修改启动内核:

grub2-set-default 'CentOS Linux (5.3.7-1.el7.elrepo.x86_64) 7 (Core)'

查看新启动内核:

grub2-editenv list

显示为修改后内核:

saved_entry=CentOS Linux (5.3.7-1.el7.elrepo.x86_64) 7 (Core)

重启查看内核:

uname -r

显示为新内核:

5.3.7-1.el7.elrepo.x86_64

注:

CentOS Linux (5.3.7-1.el7.elrepo.x86_64) 7 (Core) #自己修改为你要启动的内核

]]>
0 https://www.affwo.com/261.html#comments https://www.affwo.com/feed/tag/%E5%86%85%E6%A0%B8/