# 运行验证器

### 验证器硬件要求 <a href="#validator-hardware-requirements" id="validator-hardware-requirements"></a>

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

### 设置验证节点 <a href="#setting-up-validator-node" id="setting-up-validator-node"></a>

#### 1.同步区块信息 <a href="#id-1-install-bsc-fullnode" id="id-1-install-bsc-fullnode"></a>

按照此处的说明设置完整节点。

#### 启动验证节点 <a href="#id-2-start-validator-node" id="id-2-start-validator-node"></a>

！！！警告 请不要将您的 RPC 端点暴露给公共网络。

```
## generate the consensus key and input the password
echo {your-password to the mining account} > password.txt
geth --datadir data \
--networkid 201022 \
--nodiscover \
--syncmode full \
--password password.txt \
--allow-insecure-unlock \
--unlock {the address of your mining account} \
--miner.gasprice 150000000000 \
--mine \
--miner.threads 1 \
--miner.gaslimit 80000000
```

#### 停止验证 <a href="#id-4-stop-validating" id="id-4-stop-validating"></a>

**您可以通过在geth 控制台**中发送命令来停止挖掘新块

**使用geth attach ipc:path/to/geth.ipc**连接到你的验证节点

```
miner.stop()
```

要恢复验证，

```
miner.start()
```
