- 论坛徽章:
- 1
|
作者: Desktop 出自: http://www.linuxdiyf.com
vi /etc/inittab
然后有个关于启动的default。默认是5,就是x-windows,改成3就是命令行界面了。
[root@OracleRAC-data1 ~]# vi /etc/inittab
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg,
# 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 单人维护模式,和Windows的安全模式一样,用于修复的时候才用
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)多人无网络模式
# 3 - Full multiuser mode 多人模式,就是我们所希望的命令行模式
# 4 - unused 系统预制,为了以后扩展方便
# 5 - X11 X-Windows模式,就是图形界面
# 6 - reboot (Do NOT set initdefault to this)重新启动
#
id:5:initdefault: #/dev/null 2>&1 /dev/null 2>&1 /dev/null 2>&1
然后
sync;shutdown -r now
重新启动一下。就可以了。(补充:听说inittab -p也可以。没试过)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_573417.html |
|