redhat6.2启动模式更改

来源:互联网 发布:linux下的arm模拟器 编辑:程序博客网 时间:2024/06/06 05:06

在启动redhat时,有两种模式可以选择,分别是文字模式和图形模式。对于启动模式的更改,在此做个记录。

用root用户登录系统

#vi /etc/inittab,回车,进入inittab文件,找到"id:5:initdefault“(其中的5也可能是3),对字符串中的数字进行修改,3-文字模式,5-图形模式。

重启系统,修改生效。

补充:run level 说明

# Default runlevel. The runlevels used 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)


原创粉丝点击