Red Hat Training

A Red Hat training course is available for RHEL 8

6.6. 连接到 debug shell

在启动过程中,systemd-debug-generator 在 TTY9 上配置 debug shell。

先决条件

流程

  1. Ctrl+Alt+F9 连接到 debug shell。

    如果您使用虚拟机,发送此组合键需要虚拟化应用程序的支持。例如,如果使用 虚拟机管理器,请从菜单中选择 Send KeyCtrl+Alt+F9

  2. debug shell 不需要身份验证,因此您可以在 TTY9 上看到类似如下的提示:
sh-4.4#

验证步骤

  • 按照如下所示输入命令:

    sh-4.4# systemctl status $$
    连接到 Debug Shell
  • 要返回到默认 shell,如果引导成功,请按 Ctrl+Alt+F1

其它资源

  • systemd-debug-generator (8) 手册页