Linux 窗口启动和命令行启动设置
修改 /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:5:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
修改 启动级别 将 id:5:initdefault: 改为 id:3:initdefault:
5表示窗口,3表示命令行。
操作:
1. 打开文件:
# vi /etc/inittab
2. 定位光标 找到'5'位置 替换:
r
3
3. 存盘退出:
:wq