# “服务”工具窗口

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

> **TL;DR**
> 显示/隐藏：  `查看 | 工具窗口 | 服务`  或 `Alt+8` (Windows), `⌘ 8` (macOS), `⌘ 8` (IntelliJ IDEA Classic (macOS)), `⌘ 8` (macOS System Shortcuts), `Alt+8` (XWin), `Alt+8` (GNOME), `Alt+8` (KDE), `Alt+8` (Emacs), `Alt+8` (Sublime Text), `⌘ 8` (Sublime Text (macOS)), `Alt+8` (Visual Studio), `Alt+8` (Visual Studio (macOS)), `Alt+8` (NetBeans), `Alt+8` (Eclipse), `⌘ 8` (Eclipse (macOS))

## 运行/调试配置

您可以在   [服务](services-tool-window.html)  工具窗口中管理多个 run/debug 配置。 例如，您可以启动、暂停和停止多个应用程序，跟踪它们的状态，并检查特定于应用程序的详细信息。

Procedure: 将运行/调试配置添加到 服務 窗口

1. 从主菜单中选择  `查看 | 工具窗口 | 服务` ，或按 `Alt+8` (Windows), `⌘ 8` (macOS), `⌘ 8` (IntelliJ IDEA Classic (macOS)), `⌘ 8` (macOS System Shortcuts), `Alt+8` (XWin), `Alt+8` (GNOME), `Alt+8` (KDE), `Alt+8` (Emacs), `Alt+8` (Sublime Text), `⌘ 8` (Sublime Text (macOS)), `Alt+8` (Visual Studio), `Alt+8` (Visual Studio (macOS)), `Alt+8` (NetBeans), `Alt+8` (Eclipse), `⌘ 8` (Eclipse (macOS))。

2. 在   服务  工具窗口中，点击 ![](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app-client.expui.general.add.svg)   添加服务  ，然后选择   运行配置  。

![服务工具窗口：添加运行配置](https://resources.jetbrains.com.cn/help/img/idea/2026.3/调试配置](run-debug-configuration.html#createExplicitly)。

## 会话

> **Note:**
> 此功能依赖于 [数据库工具和 SQL](https://plugins.jetbrains.com/plugin/10925-database-tools-and-sql-for-webstorm--rustrover)插件，您需要安装并启用它。 更多信息请参阅 [打开插件设置](managing-plugins.html#open-plugin-settings)。

在   服务   工具窗口中，可以重命名和关闭 [会话](managing-connection-sessions.html)、在会话之间切换，并执行其他与会话相关的操作。

有关会话操作的更多信息，请参阅 [管理会话](managing-connection-sessions.html#manage_sessions)。

![重命名连接会话](https://resources.jetbrains.com.cn/help/img/idea/2026.3/db_managing_connections_rename.png)

## 查询结果集和执行输出

> **Note:**
> 此功能依赖于 [数据库工具和 SQL](https://plugins.jetbrains.com/plugin/10925-database-tools-and-sql-for-webstorm--rustrover)插件，您需要安装并启用它。 更多信息请参阅 [打开插件设置](managing-plugins.html#open-plugin-settings)。

当您运行查询时，IntelliJ IDEA 会在   服务   工具窗口的选项卡中显示其结果。

有关查看查询结果的更多信息，请参阅 [查询结果](viewing-query-results.html)主题。

* 在 结果 选项卡中，您可以以表格格式查看从数据库中检索的数据。 有关该选项卡的更多信息，请参阅 [Services 工具窗口中的结果选项卡](viewing-query-results.html#result_tabs)和 [选项卡参考信息](services-tool-window.html#db_result_tab)。 ![服务工具窗口中的 Result 选项卡](https://resources.jetbrains.com.cn/help/img/idea/2026.3/db_result_tab_services_tool_window.png)

* 在 输出 选项卡中，您可以查看您在 查询控制台 中执行的 SQL 语句及其他操作的信息。 有关该选项卡的更多信息，请参阅 [输出选项卡](viewing-query-results.html#output_tab)和 [选项卡参考信息](services-tool-window.html#db_output_tab)。 ![“输出”选项卡](https://resources.jetbrains.com.cn/help/img/idea/2026.3/db_output_tab_services.png)

## See also

### 参考

[Services tool window](services-tool-window.html#run-configs)

