CentOS6.5启动界面的更改的方法

2025-05-27 0 54

一、取消开机图片

早就想彻底和图形界面说再见,干脆连开机画面也不要了吧。黑屏刷出一大片开机信息给人一种酷酷的感觉,虽然现在还不明白那些信息是啥意思。^_^

vim /etc/grub.conf。

删除“rhgb quiet”,ZZ。OK,reboot,是不是有效果了。

解释:

rhgb:以图片来代替启动过程中的文本信息,那些文本信息在启动完成后可以用dmesg命令查看。rhgb = redhat graphical boot – This is a GUI mode booting screen with most of the information hidden while the user sees a rotating activity icon spining and brief information as to what the computer is doing.

quite:在启动过程中只显示重要信息,类似硬件自检的消息不回显。quiet = hides the majority of boot messages before rhgb starts. These are supposed to make the common user more comfortable. They get alarmed about seeing the kernel and initializing messages, so they hide them for their comfort.

二、开机进入文本界面

接着,我们可以通过编辑/etc/inittab文件实现默认进入图形界面。把其中的id:3:initdefault中的3改为5,这样以后系统启动后将直接进入文本模式。以下是配置引导进入图形模式的etc/inittab文件的部分内容:

#Default runlevel.The runlevels used by RHS are:

# 0-halt(Do NOT set initdefault to this)

# 1 -Single user mode

# 2-Multiuser,without NFS(The same as 3,if you do not have networking)

# 3-Full multiuser mode

# 4-unused

# 5-X11

# 6-reboot(Do NOT set initdefault to this)

id:3:initdefault:

该部分信息表明Linux操作系统有六种不同的运行级(runlevel),在不同的运行级下,系统有着不同的状态,这六种运行级分别为:

#0:停机(记住不要把initdefault 设置为0,因为那样会使Linux无法启动)

#1:单用户模式,就像Win9X下的安全模式。

#2:多用户,但是没有 NFS 。

#3:完全多用户模式,标准的运行级。

#4:一般不用,在一些特殊情况下可以用它来做一些事情。

#5:X11,即进到 X-Window 系统。

#6:重新启动(记住不要把initdefault设置为6,否则会使Linux不断地重新启动)。

其中运行级3就是我们要进入的标准Console字符界面模式。

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 建站教程 CentOS6.5启动界面的更改的方法 https://www.kuaiidc.com/57175.html

相关文章

发表评论
暂无评论