Linux设置开机等待时间

来源:互联网 发布:epub手机打开知乎 编辑:程序博客网 时间:2024/04/30 16:11

Centos6.x操作系统每次开机时,都会有系统等待时间,此选项最常用到的地方就是修改密码,如果不需要修改密码的话,通常需要快速进入系统。因为可以修改系统等待时间。

开机等待时间默认为5秒,将之设置为0秒后,保存后重新启动服务器,就会迅速跳过开机选项进入系统,不过建议设置为1秒,这样忘记密码时,可以及时按下重新设置密码的选项。

[root@rac1 grub]# cat /boot/grub/menu.lst# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE:  You have a /boot partition.  This means that#          all kernel and initrd paths are relative to /boot/, eg.#          root (hd0,0)#          kernel /vmlinuz-version ro root=/dev/mapper/vg_rac1-lv_root#          initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=0timeout=5                            //设置开机选项描述,默认为5秒splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux (2.6.32-358.el6.x86_64)        root (hd0,0)        kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_rac1-lv_root rd_LVM_LV=vg_rac1/lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_rac1/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet        initrd /initramfs-2.6.32-358.el6.x86_64.img


0 0
原创粉丝点击