步骤如下:
准备:
- ubuntu23.10
- 几块大机械硬盘组成 lvm 大小最好大于 20T
- 畅通无阻的互联网
下载 NiceNode
选择 deb 包,安装
然后按照提示安装 podman
选择 Geth+Lighthouse 启动后根据自身网络设置一下网络连接数限制
一个全节点账本就开始同步了
查看下 Geth 版本
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' http://localhost:8545
{"jsonrpc":"2.0","id":67,"result":"Geth/v1.13.10-stable-bc0be1b1/linux-amd64/go1.21.6"}
验证下:
curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{"jsonrpc":"2.0","id":1,"result":"0x29b00d"}
已经开始同步了