# 运行全节点

### 全节点功能

* 将完整的区块链历史存储在磁盘上，并可以回答来自网络的数据请求。
* 接收并验证新的区块和交易。
* 验证每个帐户的状态。

### 支持平台 <a href="#supported-platforms" id="supported-platforms"></a>

我们目前支持运行完整节点`Linux`。

### 建议要求 <a href="#suggested-requirements" id="suggested-requirements"></a>

#### 全节点 <a href="#fullnode" id="fullnode"></a>

* VPS 运行最新版本的 Linux。
* **重要** 1T GB 可用磁盘空间、固态驱动器 (SSD)、gp3、8k IOPS、250MB/S 吞吐量、读取延迟 <1ms。（如果从快照/快速同步开始，则需要 NVMe SSD）
* 8 核 CPU 和 16 GB 内存 (RAM)。
* 建议 AWS 上的 m5zn.3xlarge 实例类型，谷歌云上的 c2-standard-16。
* 上传/下载速度为每秒 5 兆字节的宽带互联网连接

#### 验证器 <a href="#validator" id="validator"></a>

* VPS 运行最新版本的 Linux。
* **重要** 1T GB 可用磁盘空间、固态驱动器 (SSD)、gp3、8k IOPS、250MB/S 吞吐量、读取延迟 <1ms
* 8 核 CPU 和 16 GB 内存 (RAM)
* 建议 AWS 上的 m5zn.3xlarge 实例类型，或 Google 云上的 c2-standard-16。
* 上传/下载速度为每秒 10 兆字节的宽带互联网连接

#### 同步模式 <a href="#sync-mode" id="sync-mode"></a>

* 快速同步

**默认**同步模式。通过下载整个状态数据库，首先请求标头，然后填写块体和收据来同步一个快速同步的全节点。一旦快速同步到达 FON智能链网络的最佳区块，它就会切换到全同步模式。

* 完全同步

从创世开始同步一个完整节点，验证所有块并执行所有事务。此模式比快速同步模式慢一点，但安全性更高。

## 运行全节点 <a href="#steps-to-run-a-fullnode" id="steps-to-run-a-fullnode"></a>

#### 从快照同步（推荐[）](https://docs.bnbchain.org/docs/validator/fullnode#sync-from-snapshot-recommended) <a href="#sync-from-snapshot-recommended" id="sync-from-snapshot-recommended"></a>

[**从发布页面** ](https://github.com/FONSmartChain/FSC)下载预构建的二进制文件或按照以下说明进行操作

### 1.下载二进制文件&#x20;

```
wget https://github.com/FONSmartChain/FSC/raw/master/geth sudo chmod +x geth
```

### 2.下载创世区块

<pre><code><strong>wget https://github.com/FONSmartChain/FSC/raw/master/genesis.json
</strong></code></pre>

### 3.初始化创世区块

```
./geth init --datadir data genesis.json
```

### 4.下载静态节点列表

```
wget https://github.com/FONSmartChain/FSC/raw/master/static-nodes.json -O data/geth/static-nodes.json
```

### 5.启动节点

```
./geth --datadir data --networkid 201022 \
--http --http.port 20102 --http.addr 0.0.0.0 --http.api "web3,eth,txpool,net" \
--port 20103
```


---

# 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.fonscan.io/zh_cn/develop/fullnode.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.
