AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 528178
Accepted
Joel G Mathew
Joel G Mathew
Asked: 2013-08-02 23:01:55 +0800 CST2013-08-02 23:01:55 +0800 CST 2013-08-02 23:01:55 +0800 CST

如何在启动时选择新内核,运行专用服务器?

  • 772

作为在运行 Debian 的专用服务器上安装 proxmox 的一部分,它安装了一个新内核。作为安装说明的一部分,我应该在 grub 中选择新内核。但是我没有在启动时访问服务器的虚拟控制台。我唯一能做的就是在服务器启动后运行一个 ssh 控制台。如何选择 pv 内核作为引导时间的默认值?

我在服务器上运行 Debian Wheezy,并安装了 proxmox 3。

linux
  • 3 3 个回答
  • 6919 Views

3 个回答

  • Voted
  1. Best Answer
    Paulo Almeida
    2013-08-03T01:58:05+08:002013-08-03T01:58:05+08:00

    将GRUB_DEFAULT变量设置在/etc/default/grub. 您可以使用内核条目的标题而不是索引,因此它不会受到后续内核安装/删除的干扰。然后你需要运行update-grub. 从Grub 手册:

    ‘GRUB_DEFAULT’
    The default menu entry. This may be a number, in which case it identifies the
    Nth entry in the generated menu counted from zero, or the title of a menu entry,
    or the special string ‘saved’. Using the title may be useful if you want to set
    a menu entry as the default even though there may be a variable number of entries 
    before it.
    
    For example, if you have:
    
         menuentry 'Example GNU/Linux distribution' --class gnu-linux {
         ...
         }
    
    then you can make this the default using:
    
        GRUB_DEFAULT='Example GNU/Linux distribution'
    
    If you set this to ‘saved’, then the default menu entry will be that saved by
    ‘GRUB_SAVEDEFAULT’, grub-set-default, or grub-reboot. 
    
    • 3
  2. ALex_hha
    2013-08-02T23:24:33+08:002013-08-02T23:24:33+08:00

    只需编辑 /boot/grub/grub.cfg

    set default="X"
    

    其中 X 是 /boot/grub/grub.cfg 中内核定义的索引号

    • 0
  3. ptman
    2013-08-02T23:56:56+08:002013-08-02T23:56:56+08:00

    如果您使用的是grub-set-default(8) 可用于选择引导条目savedefault。如果您不使用savedefault默认值,则set default="0"启动第一个定义的内核。通常,内核按从最新到最旧的顺序排列,以便引导到最新的内核。

    • 0

相关问题

  • Linux 主机到主机迁移

  • 如何在 Linux 机器上找到有关硬件的详细信息?

  • 如何在 Linux 下监控每个进程的网络 I/O 使用情况?

  • 在 RHEL4 上修改 CUPS 中的现有打印机设置

  • 为本地网络中的名称解析添加自定义 dns 条目

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve