服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|

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

2019-06-14 11:36来源:CentOS之家所属分类:Centos

一些朋友不知道CentOS6.5启动界面如何更改?今天小编为大家带来的是CentOS6.5启动界面的更改的方法;希望对大家会有帮助,有需要的朋友一起去看看吧

一、取消开机图片

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

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字符界面模式。

延伸 · 阅读

精彩推荐