linux 启动有个概念就是runlevel,但是很久都不知道runlevel为何物,搜了点资料,总结下
run level 间如何切换呢
* 列出当前使用的运行等级
# systemctl get-defaul tmulti-user.target
* 启动运行等级5,即图形模式
# systemctl isolate runlevel5.target 或 # systemctl isolate graphical.target
* 启动运行等级3,即多用户模式(命令行)
# systemctl isolate runlevel3.target 或 # systemctl isolate multiuser.target
* 设置多用户模式或图形模式为默认运行等级
# systemctl set-default runlevel3.target # systemctl set-default runlevel5.target
* 重启、停止、挂起、休眠系统或使系统进入混合睡眠
# systemctl reboot # systemctl halt # systemctl suspend # systemctl hibernate # systemctl hybrid-sleep
* 启动系统救援模式
# systemctl rescue
* 进入紧急模式
# systemctl emergency