栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Centos 7开机菜单设置

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Centos 7开机菜单设置

Centos 7的开机菜单设置主要是能过 /etc/grub2.cfg ( /etc/grub2.cfg -> ../boot/grub2/grub.cfg)

 timeout=5   为等待用户选择时间,当5秒钟没有选择,系统会启动默认的菜单

与centos 6不同的是centos 7在设置默认启动项时不能通过 default=? 来设置,而是通过以下命令:

若要列出系统开机时显示的所有选项,请执行以下指令:

[root@host ~]# awk -F' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
0 : CentOS Linux 7 (Core), with Linux 3.10.0-229.14.1.el7.x86_64
1 : CentOS Linux 7 (Core), with Linux 3.10.0-229.4.2.el7.x86_64
2 : CentOS Linux 7 (Core), with Linux 3.10.0-229.el7.x86_64
3 : CentOS Linux 7 (Core), with Linux 0-rescue-605f01abef434fb98dd1309e774b72ba

  查看当前默认启动项

# grub2-editenv list

设置默认启动项

#grub2-set-default 2  
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/361951.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号