修改/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:从图形到字符:修改最后一行id:3:initdefault:代表默认开机进的字符界面id:5:initdefault:代表默认开机进入图形界面