Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

修改 Linux 預設開機執行等級:進入文字模式(Runlevel 3)

編輯:Linux 教學

Linux 有 7 個執行等級,預設為 5(X Window 圖形介面)。習慣命令列操作者可改為 3(完整多使用者文字模式):

步驟

  1. 以 root 身分編輯 /etc/inittab。
  2. 找到 id:5:initdefault:,將 5 改為 3。
  3. 存檔重開機即進入文字模式。

執行等級對照表

等級名稱說明
0halt關機(勿設為預設)
1Single user單用戶維護模式(類似安全模式)
2Multiuser多用戶,無 NFS(同 3,若無網路)
3Full multiuser完整多用戶文字模式(標準)
4Unused保留,特殊用途(如筆電電池低時切換)
5X11圖形介面
6reboot重開機(勿設為預設)

文字模式下輸入 startx 可手動啟動 X Window。

Copyright © Windows教程網 All Rights Reserved