> For the complete documentation index, see [llms.txt](https://help.titanapp.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.titanapp.info/titan-network-zhong-wen/he-xie-er-ce-shi-wang/guan-yu-he-xie-er-ce-shi-wang/shen-qing-cheng-wei-l1-node-geng-gao-shou-yi/l1-jie-dian-yun-xing-jiao-cheng.md).

# L1节点运行教程

### Titan节点安装和启动教程

此教程将引导您完成Titan L1节点程序的下载、配置和启动过程。请按照以下步骤操作，并确保满足所有网络要求。

### <mark style="color:red;">**网络要求**</mark>

在开始之前，请确保以下端口在您的网络防火墙或路由器上已开放，以确保节点正常通信：

* **9000  TCP**: 用于节点之间的通信。
* **2345  TCP/UDP**: 用于节点的广播和数据同步。

*<mark style="color:red;">\*如果节点的网络设置不符合我们的要求，节点将无法正常工作，您也将无法获得任何奖励。\*</mark>*

#### **步骤1：下载 `titan-L1` 程序**

首先，打开您的Linux终端，并使用以下命令下载最新版本的 `titan-L1` 程序：

```bash
wget https://github.com/zscboy/titan/releases/latest/download/titan-candidate
```

#### **步骤2：设置执行权限**

下载完成后，需要给这个程序文件设置适当的执行权限，以确保可以顺利运行。请输入以下命令：

```bash
chmod 0755 titan-candidate
```

#### **步骤3：配置存储环境变量**

Titan程序需要知道存储数据的位置。请根据您的系统环境，选择合适的存储路径，然后设置环境变量。例如，如果您希望使用 `/mnt/storage` 作为存储路径，可以使用以下命令：

```bash
export TITAN_METADATAPATH=/mnt/storage
export TITAN_ASSETSPATHS=/mnt/storage
```

请确保替换 `<存储路径>` 为您实际的路径。

#### **步骤4：后台运行程序**

在设置好环境变量后，您就可以启动Titan程序了。这一步需要您提供一个有效的 `code_id`，<mark style="color:red;">`code_id`</mark> <mark style="color:red;"></mark><mark style="color:red;">可以在您的</mark><mark style="color:red;">**TG/邮箱**</mark><mark style="color:red;">中查看。</mark>\
使用以下命令在后台启动程序，并将输出日志保存到文件：

```bash
nohup ./titan-candidate daemon start --init --url https://test-locator.titannet.io:5000/rpc/v0 --code <code_id> > /var/log/candidate.log 2>&1 &
```

请替换 `<code_id>` 为您的实际代码ID。

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

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

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

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

#### 注意事项：

* 确保您使用的存储路径存在且具备写入权限。
* 运行过程中的所有输出将被重定向到 `/var/log/candidate.log`，您可以随时查看该日志文件以监控程序状态。
* 如果您在任何步骤中遇到问题，请重新检查您输入的命令是否正确，或联系技术支持获取帮助。

以上是一个完整的Titan节点设置和运行教程，包括了网络要求的详细说明。遵循这些步骤可以确保您的节点能够正确安装并运行。如果有任何疑问或需要进一步的帮助，请不要犹豫联系我们。


---

# 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 dynamically by asking a question.

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

```
GET https://help.titanapp.info/titan-network-zhong-wen/he-xie-er-ce-shi-wang/guan-yu-he-xie-er-ce-shi-wang/shen-qing-cheng-wei-l1-node-geng-gao-shou-yi/l1-jie-dian-yun-xing-jiao-cheng.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
