1. 进入编辑状态:
[root@localhost ~]# vi /etc/inittab
2. 修改:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# 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:5:initdefault:
-----------------------------------
修改: id:5:initdefault: 为: id:3:initdefault:
这样就修改为系统启动后使用控制台模式,不启用xwindow
3.
如果想启动xwindow ,可以直接输入:startx.
如下:
[root@localhost ~]# startx