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

  • 相关阅读:
    git httphttpsgit免密设置记住用户名和密码的方法
    WPF部署问题 解决:The application requires that the assembly...be installed in the GAC
    reporting service & wpf
    洪应明《菜根谭》
    焦郁《白云向空尽》
    .net 裁剪图片
    js 本地预览图片和得到图片实际大小
    display: -webkit-box; 做个小小试验
    C# json
    宽域POST提交数据
  • 原文地址:https://www.cnblogs.com/kangleweb/p/10275998.html
Copyright © 2011-2022 走看看