摘录一段其他博主的方法:
$ systemctl get-default
graphical.target
$ systemctl status graphical.target
● graphical.target - Graphical Interface
Loaded: loaded (/usr/lib/systemd/system/graphical.target; indirect; vendor preset: disabled)
Active: active since Thu 2018-08-23 11:55:29 CEST; 49min ago
Docs: man:systemd.special(7)
Aug 23 11:55:29 <hostname> systemd[1]: Reached target Graphical Interface.
$ systemctl status multi-user.target
● multi-user.target - Multi-User System
Loaded: loaded (/usr/lib/systemd/system/multi-user.target; static; vendor preset: disabled)
Active: active since Thu 2018-08-23 11:55:29 CEST; 49min ago
Docs: man:systemd.special(7)
Aug 23 11:55:29 <hostname> systemd[1]: Reached target Multi-User System.
Please try if these commands solve the problem :
sudo systemctl enable graphical.targetsudo systemctl enable multi-user.target
sudo systemctl set-default graphical.targetsudo reboot。
使用systemctl配置默认启动目标

该博客介绍了如何通过systemctl命令启用和设置默认启动目标,如graphical.target和multi-user.target,以解决系统启动问题。操作包括启用目标、设置默认目标及重启系统。
3175

被折叠的 条评论
为什么被折叠?



