CentOS設定開機等待時間

來源:互聯網
上載者:User

CentOS設定開機等待時間

Centos6.x作業系統每次開機時,都會有系統等待時間,此選項最常用到的地方就是修改密碼,如果不需要修改密碼的話,通常需要快速進入系統。因為可以修改系統等待時間。

開機等待時間預設為5秒,將之設定為0秒後,儲存後重新啟動伺服器,就會迅速跳過開機選項進入系統,不過建議設定為1秒,這樣忘記密碼時,可以及時按下重新設定密碼的選項。

[plain]view plaincopy
  1. [root@rac1grub]#cat/boot/grub/menu.lst
  2. #grub.confgeneratedbyanaconda
  3. #
  4. #Notethatyoudonothavetorerungrubaftermakingchangestothisfile
  5. #NOTICE:Youhavea/bootpartition.Thismeansthat
  6. #allkernelandinitrdpathsarerelativeto/boot/,eg.
  7. #root(hd0,0)
  8. #kernel/vmlinuz-versionroroot=/dev/mapper/vg_rac1-lv_root
  9. #initrd/initrd-[generic-]version.img
  10. #boot=/dev/sda
  11. default=0
  12. timeout=5//設定開機選項描述,預設為5秒
  13. splashimage=(hd0,0)/grub/splash.xpm.gz
  14. hiddenmenu
  15. titleRedHatEnterpriseLinux(2.6.32-358.el6.x86_64)
  16. root(hd0,0)
  17. kernel/vmlinuz-2.6.32-358.el6.x86_64roroot=/dev/mapper/vg_rac1-lv_rootrd_LVM_LV=vg_rac1/lv_rootrd_NO_LUKSLANG=en_US.UTF-8rd_NO_MDSYSFONT=latarcyrheb-sun16crashkernel=128Mrd_LVM_LV=vg_rac1/lv_swapKEYBOARDTYPE=pcKEYTABLE=usrd_NO_DMrhgbquiet
  18. initrd/initramfs-2.6.32-358.el6.x86_64.img

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.