> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 查看 ggRock 服务器日志

本文介绍了使用 journalctl 查看 ggRock 服务器应用程序日志所需的步骤。

退出

语言：

### **查看 ggRock 服务器日志**

1. 通过直接连接服务器、SSH 或通过 Debian 控制面板访问服务器控制台。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15860447/undefined-Mar-30-2025-11-57-22-4406-PM.png?version=1&modificationDate=1743379067028&cacheVersion=1&api=v2)

2. 使用 root 用户或系统上的其他管理员用户登录。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15860447/undefined-Mar-30-2025-11-57-22-6804-PM.png?version=1&modificationDate=1743379067298&cacheVersion=1&api=v2)

3. 使用以下命令查看 ggRock 服务的日志文件：

```
journalctl -u ggrock
```
![](https://ggcircuit.atlassian.net/wiki/download/attachments/15860447/undefined-Mar-30-2025-11-57-22-2472-PM.png?version=1&modificationDate=1743379067318&cacheVersion=1&api=v2)

或者，您可以使用

```
journalctl -u ggrock -f
```

命令显示跟踪最新事件的运行日志。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15860447/undefined-Mar-30-2025-11-57-23-1592-PM.png?version=1&modificationDate=1743379067325&cacheVersion=1&api=v2)
![](https://ggcircuit.atlassian.net/wiki/download/attachments/15860447/undefined-Mar-30-2025-11-57-22-8848-PM.png?version=1&modificationDate=1743379067332&cacheVersion=1&api=v2)
 
日志输出示例：