> ## 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（已弃用）

为了安装 ggRock，您应该有一个按照我们的[**安装 Debian 操作系统**](https://8226353.hs-sites.com/knowledge/install-debian-os-deprecated?__hstc=177048186.d3d38f5e724cb861c39039a19971738f.1735844693470.1747402724973.1747411355614.61&__hssc=177048186.23.1747411355614&__hsfp=1190003462)文章安装的 Debian 服务器。如果以下步骤对您没有意义，请参考前面的部分。

### 步骤 1. 以 root 身份登录

您的登录名是：***root***  
您的密码是：[**步骤 7. 设置您的 root 密码**](https://8226353.hs-sites.com/knowledge/install-debian-os-deprecated?__hstc=177048186.d3d38f5e724cb861c39039a19971738f.1735844693470.1747402724973.1747411355614.61&__hssc=177048186.23.1747411355614&__hsfp=1190003462)中设置的密码。  
输入密码时看不到密码字符是正常的。输入密码并按 Enter。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193029.png?version=1&modificationDate=1747423832115&cacheVersion=1&api=v2)

### 步骤 2. 确认登录

成功登录后，您应该看到的最后一行将显示 root@ggrock:~#，其中 ggrock 是您服务器的主机名。如果您无法使用正确的密码登录 - **请检查** **大写锁定**是否已禁用

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 3. 运行安装命令

在控制台中输入以下行：  
wget -O - [ggrock.com/install.sh](http://ggrock.com/install.sh) | bash -  
然后按 Enter。完成此步骤后，ggRock 将需要几分钟来下载所有包。  
**重要提示！**  
请注意，粘贴上述命令可能会导致字符位置错误。请使用 ssh 或手动输入。**命令中的"O"是大写字母 O，不是数字 0。请遵守空格。**

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193113.png?version=1&modificationDate=1747423876917&cacheVersion=1&api=v2)

### 步骤 4. 启动 ggRock 配置实用程序

按"是"按钮继续。

*您可以随时通过运行 ggrock-linux-configurator 命令来运行此实用程序*

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193139.png?version=1&modificationDate=1747423902528&cacheVersion=1&api=v2)

### 步骤 5. 允许 ggRock 安装 Debian 依赖

按"是"允许 ggRock 从 Debian"contrib"存储库安装它需要的包

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193209.png?version=1&modificationDate=1747423932779&cacheVersion=1&api=v2)

### 步骤 6. 允许 ggRock 启用自己的依赖

按"是"允许 ggRock 启用数据库相关和监控相关的包

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193231.png?version=1&modificationDate=1747423954685&cacheVersion=1&api=v2)

### 步骤 7. 选择服务器 IP 地址

选择分配给服务器的其中一个 IP 地址，该地址将用于客户端 PC 的网络引导。这将是您的**服务器 IP** 地址

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193257.png?version=1&modificationDate=1747423980039&cacheVersion=1&api=v2)

### 步骤 8. 确认网络桥接

为了允许 ggRock 运行其虚拟机，请允许配置网络桥接。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193453.png?version=1&modificationDate=1747424096452&cacheVersion=1&api=v2)

### 步骤 9. 启用 IP 转发

在服务器上启用 IP 转发，因为 ggRock 使用 Windows PXE 引导需要它

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193551.png?version=1&modificationDate=1747424154081&cacheVersion=1&api=v2)

### 步骤 10. 让 ggRock 安装所有包

ggRock 需要 10-30 分钟来安装自身及所有依赖

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193611.png?version=1&modificationDate=1747424175011&cacheVersion=1&api=v2)

### 步骤 11. 检查安装

根据您的硬件，安装可能需要长达 30 分钟。  
完成后，服务器应显示以下消息：

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

ggRock 已安装。在您的网络浏览器中打开它 [http://SERVER_IP/](http://server_ip/+*)  
**服务器 IP** 是您从现在开始用来访问 ggRock 的本地网址。恭喜！

**注意：**

*此时（以及从此以后），您可以选择通过遵循[**访问 Debian 控制面板文章**](https://8226353.hs-sites.com/knowledge/access-debian-control-panel?__hstc=177048186.d3d38f5e724cb861c39039a19971738f.1735844693470.1747402724973.1747411355614.61&__hssc=177048186.23.1747411355614&__hsfp=1190003462)中的可选说明来远程管理您的 ggRock 服务器。*

### 步骤 12. 重启服务器

最后，您必须**再次重启服务器**。

在控制台中输入以下行：  
reboot  
然后按 Enter。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 13. 以 root 身份登录

您的登录名是：***root***  
您的密码是：[**步骤 7. 设置您的 root 密码**](https://intercom.help/ggcircuit/en/articles/4214977-install-debian-os#step-7-root-password)中设置的密码。  
输入密码时看不到密码字符是正常的。

输入密码并按 Enter

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 14. 确认登录

成功登录后，您应该看到的最后一行将显示 root@ggrock:~#，其中 ggrock 是您服务器的主机名。如果您无法使用正确的密码登录 - **请检查** **大写锁定**是否已禁用

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 15. 备份网络配置

备份网络配置文件。  
在控制台中输入以下行：

```
cp /etc/network/interfaces /etc/network/interfaces.bak
```

然后按 Enter

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 16. 打开网络配置

在控制台中输入以下行：

```
nano /etc/network/interfaces
```

然后按 Enter  
*此文件的内容对您可能不同*

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 17. 设置静态 IP

您需要更改配置文件的几个方面。

将

auto vmbr0

iface vmbr0 inet dhcp

替换为：

auto vmbr0

iface vmbr0 inet static

address 192.168.1.66

netmask 255.255.255.0

gateway 192.168.0.1

重要的是，这里的值是：

* address 值是您的服务器 IP（在此安装中为 192.168.1.66）
* netmask 值默认为 255.255.255.0，仅在确定您的网络使用不同值时才更改
* gateway 值是您的路由器的 IP 地址。通常为 192.168.0.1 或 192.168.1.1，但可能不同，请咨询您的网络管理员
* address、netmask 和 gateway 前面的空格是通过按 Tab 实现的

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 18. 保存接口设置

为了保存设置，首先按 Ctrl+X，然后按 Y，最后按 Enter

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 19. 备份 DNS 配置

备份 DNS 配置文件。  
在控制台中输入以下行：

```
cp /etc/resolv.conf /etc/resolv.conf.bak
```

然后按 Enter

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 20. 打开 DNS 设置

在控制台中输入以下行：

```
nano /etc/resolv.conf
```

然后按 Enter  
*此文件的内容对您可能不同*

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193050.png?version=1&modificationDate=1747423852983&cacheVersion=1&api=v2)

### 步骤 21. 设置 DNS 值

将文件中的文本更改为：  
nameserver 8.8.8.8  
nameserver 8.8.4.4  
要保存，请按 Ctrl-X，然后按 Y，最后按 Enter

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193113.png?version=1&modificationDate=1747423876917&cacheVersion=1&api=v2)

### 步骤 22. 重启服务器

在控制台中输入以下行：  
reboot  
然后按 Enter

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193113.png?version=1&modificationDate=1747423876917&cacheVersion=1&api=v2)

### 可选步骤 23. 重新运行 ggRock 配置程序

如果您决定将**静态 IP 设置为与**您的**初始服务器 IP 不同的值**，请执行以下操作：

1. 以 root 身份登录
2. 在控制台中输入以下行：

```
ggrock-linux-configurator
```

然后遵循[**Install ggRock**](https://8226353.hs-sites.com/knowledge/install-ggrock-deprecated?__hstc=177048186.d3d38f5e724cb861c39039a19971738f.1735844693470.1747402724973.1747411355614.61&__hssc=177048186.23.1747411355614&__hsfp=1190003462)文章中的[**步骤 4. 启动 ggRock 配置实用程序**](https://help.ggcircuit.com/knowledge/install-ggrock-deprecated#step-4-initiate-ggrock-configuration-utility) - [**步骤 11. 检查安装**](https://help.ggcircuit.com/knowledge/install-ggrock-deprecated#step-11-check-the-installation)。

这是让 ggRock 为您的新 IP 地址重新调整所必需的

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15863115/image-20250516-193113.png?version=1&modificationDate=1747423876917&cacheVersion=1&api=v2)

### *使用静态 IP，您现在可以设置路由并从 LAN 外部访问您的 ggRock 服务器。*

### **您应该一切就绪**并[**配置 ggRock**](https://8226353.hs-sites.com/knowledge/configure-ggrock-deprecated?__hstc=177048186.d3d38f5e724cb861c39039a19971738f.1735844693470.1747402724973.1747411355614.61&__hssc=177048186.23.1747411355614&__hsfp=1190003462)。

这回答了您的问题吗？