2013年11月1日金曜日

LinuxサーバをCUIモードで起動するには

GUIモードでインストールしたLinuxサーバをCUIモードで起動するには/etc/inittabを編集します。

#
# 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:3:initdefault:

赤字で示したようにid:の後を3に修正します。
GUIモードでの起動に戻すにはここを5にします。

0 件のコメント:

コメントを投稿