# 如何在 Linux 上运行 Titan

{% hint style="danger" %}
**🚨重要提示🚨**

如果您是参与过Herschel测试网的用户，需要手动清理之前运行的节点数据。否则节点将无法运行🚨

**🔘**[**去清理**](https://titannet.gitbook.io/titan-network-cn/3-ce-ka-xi-ni-ce-shi-wang/yun-xing-jie-dian/l2-edge-jie-dian/yun-xing-jie-dian-zhuan-qu/lao-jie-dian-qing-li-zhi-nan/linux-jie-dian-shu-ju-qing-li)

*如果您之前从未运行过Titan节点，请直接参考下面的教程运行。*
{% endhint %}

{% hint style="info" %}
我们的 GitHub 上的 [**Releases**](https://github.com/Titannet-dao/titan-node/releases) 部分是获取最新二进制发布版本和查看源代码的最佳位置。
{% endhint %}

### 步骤 1: 下载 CLI Titan节点文件 <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

{% embed url="<https://github.com/Titannet-dao/titan-node/releases/download/v0.1.20/titan-edge_v0.1.20_246b9dd_linux-amd64.tar.gz>" %}

### 步骤2: 解压下载的文件 <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

打开终端，导航到下载文件的目录，然后执行以下命令进行解压：

```
tar -zxvf titan-edge_v0.1.20_246b9dd_linux-amd64.tar.gz
```

### 步骤3: 进入解压后的目录

使用以下命令进入解压后的目录：

```
cd titan-edge_v0.1.20_246b9dd_linux-amd64
```

### 步骤4: 安装Titan Edge <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

将 `titan-edge` 可执行文件复制到系统的 `/usr/local/bin` 目录下：

```
sudo cp titan-edge /usr/local/bin
```

### 步骤5: 安装库文件 <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

将库文件（假设名为 `libgoworkerd.so`）复制到系统的 `/usr/local/lib` 目录下：

```
sudo cp libgoworkerd.so /usr/local/lib
```

### 步骤6:sudo ldconfig <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
sudo ldconfig
```

### 步骤 7: 启动 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
titan-edge daemon start --init --url https://cassini-locator.titannet.io:5000/rpc/v0
```

### **步骤 8:  👉**[**申请身份码**](https://titannet.gitbook.io/titan-network-cn/hui-geng-si-ce-shi-wang/huygens-testnet/an-zhuang-cheng-xu-zhuan-qu/bang-ding-shen-fen-ma)**👈**

### 步骤 9:绑定身份码

*将申请到的 <mark style="color:red;">**身份码**</mark> 替换 <mark style="color:red;">**your-hash-here**</mark>*

```
titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
```

### **步骤 10: 停止节点**

```
titan-edge daemon stop
```
