systemctl 命令完全指南(七)
2016-12-17 18:43:43
10563
控制系統(tǒng)運(yùn)行等級
32. 啟動(dòng)系統(tǒng)救援模式
# systemctl rescue
Broadcast message from root@tecmint on pts/0(Wed2015-04-2911:31:18 IST):
The system is going down to rescue mode NOW!
33. 進(jìn)入緊急模式
# systemctl emergency
Welcome to emergency mode!After logging in, type "journalctl -xb" to view
system logs,"systemctl reboot" to reboot,"systemctl default" to try again
to boot intodefault mode.
34. 列出當(dāng)前使用的運(yùn)行等級
# systemctl get-default
multi-user.target
35. 啟動(dòng)運(yùn)行等級5,即圖形模式
# systemctl isolate runlevel5.target
或
# systemctl isolate graphical.target
36. 啟動(dòng)運(yùn)行等級3,即多用戶模式(命令行)
# systemctl isolate runlevel3.target
或
# systemctl isolate multiuser.target
36. 設(shè)置多用戶模式或圖形模式為默認(rèn)運(yùn)行等級
# systemctl set-default runlevel3.target
# systemctl set-default runlevel5.target
37. 重啟、停止、掛起、休眠系統(tǒng)或使系統(tǒng)進(jìn)入混合睡眠
# systemctl reboot
# systemctl halt
# systemctl suspend
# systemctl hibernate
# systemctl hybrid-sleep
對于不知運(yùn)行等級為何物的人,說明如下。
Runlevel 0 : 關(guān)閉系統(tǒng)
Runlevel 1 : 救援?維護(hù)模式
Runlevel 3 : 多用戶,無圖形系統(tǒng)
Runlevel 4 : 多用戶,無圖形系統(tǒng)
Runlevel 5 : 多用戶,圖形化系統(tǒng)
Runlevel 6 : 關(guān)閉并重啟機(jī)器