Linux、CentOS 命令行启动切换图形化界面
- 查看当前运行级别,命令:
systemctl get-default
- 设置运行级别3(命令行窗口模式,没有图形化界面),命令:
systemctl set-default multi-user.target
- 设置运行级别5(图形化界面方式),命令:
systemctl set-default graphical.target
- 重启虚拟机命令:
reboot
人若无名,专心练剑~!
systemctl get-default
systemctl set-default multi-user.target
systemctl set-default graphical.target
reboot
人若无名,专心练剑~!