[Linux服务器] Linux 更换内核

724 0
Honkers 2025-8-3 17:49:58 | 显示全部楼层 |阅读模式

一、查看/更换系统内核

1.1 查看当前运行环境的内核

  1. [root@localhost ~]# uname -sr
  2. Linux 3.10.0-957.el7.x86_64
复制代码

1.2 查看系统上所有可用内核

  1. [root@localhost ~]# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
  2. 0 : CentOS Linux (3.10.0-1160.105.1.el7.x86_64) 7 (Core)
  3. 1 : CentOS Linux (3.10.0-1160.76.1.el7.x86_64) 7 (Core)
  4. 2 : CentOS Linux (3.10.0-1160.53.1.el7.x86_64) 7 (Core)
  5. 3
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2026 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行