6.6. 连接到 debug shell
在启动过程中,systemd-debug-generator 在 TTY9 上配置 debug shell。
先决条件
- 您已成功引导至 debug shell。请参阅 引导至 debug shell。
流程
按 Ctrl+Alt+F9 连接到 debug shell。
如果您使用虚拟机,发送此组合键需要虚拟化应用程序的支持。例如,如果使用 虚拟机管理器,请从菜单中选择 Send Key
Ctrl+Alt+F9。- debug shell 不需要身份验证,因此您可以在 TTY9 上看到类似如下的提示:
sh-4.4#
sh-4.4#
验证
按照如下所示输入命令:
systemctl status $$
sh-4.4# systemctl status $$Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 要返回到默认 shell,如果引导成功,请按 Ctrl+Alt+F1。