> For the complete documentation index, see [llms.txt](https://docs.clore.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clore.ai/clore.ai/clore.ai-eng-zh/mian-xiang-zhu-ji-fang/server-offline-on-clore.ai/how-to-reinstall-while-keeping-the-old-token.md).

# 保留令牌后重新安装

**方法一（推荐）**

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

<figure><img src="https://1308073318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbyNlC5NV8aIpXnc76G7w%2Fuploads%2FOEv5FeKXt8Mhv6xZuqb8%2Fimage%20(12).avif?alt=media&amp;token=d84a9415-ae1e-4dee-81e1-346834ecab1b" 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="https://1308073318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbyNlC5NV8aIpXnc76G7w%2Fuploads%2Fbha0fjhPhtAwlnYnOKTL%2Fimage%20(36).png?alt=media&amp;token=c8053efb-ff69-4f83-b34c-aa16f0f45caa" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
