# 保留令牌重新安装

**方法一（首选）**

令牌文件位于 /opt/clore-hosting/client/auth。为便于复制，您可以使用带有文件管理器的程序，例如 Snowflake：

<figure><img src="/files/f345e20f54f0319e16441fdfb0b132e86904ba17" alt=""><figcaption></figcaption></figure>

1. 确保您的计算机与服务器在同一局域网内。
2. 将 auth 文件拖到您的计算机或 U 盘上。
3. 使用以下命令重新安装 Hive OS：

   ```
   hive-replace -y --stable
   ```
4. 按照安装说明操作，且不要使用以下命令：

   ```
   /opt/clore-hosting/clore.sh --init-token <token>
   ```

   只需将 auth 文件放回到`/opt/clore-hosting/client/`目录
5. 重启服务器：

   ```
   reboot
   ```

**方法二**

1. 通过 SSH 连接到服务器或打开 Hive Shell 并运行命令：

   ```
   mcedit /opt/clore-hosting/client/auth
   ```

   auth 文件将在文本编辑器中打开。复制其内容并将其保存在您的计算机上，例如在文本编辑器中。

<figure><img src="/files/2f5b3a3e7153b902071450918559315ee9c59dfe" alt=""><figcaption></figcaption></figure>

2. 按 F10 退出编辑器。
3. 使用以下命令重新安装 Hive OS：

   ```
   hive-replace -y --stable
   ```
4. 完成安装后，按顺序运行以下命令：

   ```
   cd /opt/clore-hosting/client/
   touch auth
   mcedit auth
   ```

   一个空的 auth 文件将在文本编辑器中打开。粘贴先前保存的旧文件内容。
5. 按 F2 保存，按 F10 退出。
6. 重启服务器：

   ```
   reboot
   ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clore.ai/clore.ai/clore.ai-eng-zh/zhen-dui-zhu-ji/server-offline-on-clore.ai/how-to-reinstall-while-keeping-the-old-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
