zoukankan      html  css  js  c++  java
  • centos系统有多个内核,修改默认启动内核

    打开系统文件

         vim  /boot/grub/grub.conf

    default=0,意思是GRUB在默认情况下,也就是用户没有选择的情况下,去启动显示在用户界面的第一个系统;GRUB启动系统时是从0开始的,就是说0表示第一个,如果用户将值改为1,那么GRUB在默认情况下会启动第二个系统;

    timeout=5,指的是给用户做出选择的时间,比如值为5,那么给用户5秒时间做出选择;我们也可以对这个时间进行修改;

    重启服务器

        reboot


    -----------------------------


    #boot=/dev/sda
    default=1
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.18-194.17.1.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-194.17.1.el5 ro root=LABEL=/ rhgb quiet
            initrd /initrd-2.6.18-194.17.1.el5.img
    title CentOS (2.6.18-194.17.1.el5xen)
            root (hd0,0)
            kernel /xen.gz-2.6.18-194.17.1.el5
            module /vmlinuz-2.6.18-194.17.1.el5xen ro root=LABEL=/ rhgb quiet
            module /initrd-2.6.18-194.17.1.el5xen.img
    title CentOS (2.6.18-194.el5xen)
            root (hd0,0)
            kernel /xen.gz-2.6.18-194.el5
            module /vmlinuz-2.6.18-194.el5xen ro root=LABEL=/ rhgb quiet
            module /initrd-2.6.18-194.el5xen.img
    title CentOS-base (2.6.18-194.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
            initrd /initrd-2.6.18-194.el5.img

  • 相关阅读:
    玲珑oj 1129 ST
    HDU 3397 线段树区间修改
    bzoj 1798 双标记区间修改线段树
    HDU 4417 BIT or ST
    HDU 2492 BIT/逆序数/排列组合
    uva 12086 线段树or树状数组练习
    cf 833 A 数论
    wcf的DataContractAttribute与DataMenmberAttribute
    wcf服务查看工具
    git学习-综合性文章
  • 原文地址:https://www.cnblogs.com/kangleweb/p/10275998.html
Copyright © 2011-2022 走看看