把 Linux 上的 x-windows 關掉

一開始灌機器的時候可能會沒有注意就把桌面(x-windows)裝進去
隨著往後 Server 的資源不夠時
這時候你或許會想到要關掉桌面
以節省 CPU & Memory 資源

直接去編輯 /etc/inittab
把下面這行

id:5:initdefault:

5 改成 3 重開(restart -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)


此方法在 Fedora 8 & RHEL 4 & CentOS 5.2 下可正常設定!

Comments

Popular posts from this blog

CentOS7 如何新增/移除 Rich Rule for firewalld

mac 安裝 mtr

Howto use Postman test Cors