打开系统文件

     vim  /boot/grub/grub.conf

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

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

重启服务器

    reboot

centos系统有多个内核,修改默认启动内核

 


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


#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

相关文章:

  • 2021-09-20
  • 2021-08-15
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-02-15
  • 2021-11-05
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-08-27
  • 2021-03-28
  • 2022-01-05
  • 2022-02-02
  • 2021-07-02
相关资源
相似解决方案