vim /etc/inittab
修改id:5:initdefault: 为id:3:initdefault:
启动图形界面 startx或者init 5
启动字符界面init 3
启动级别说明 启动对应的级别 init n
# 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)