AWS Linux部署运行BSC FullNode

1. 打开官方文档

https://docs.bnbchain.org/docs/validator/fullnode

2.  创建文件夹

sudo su

mkdir bsc && cd bsc

mkdir download

mkdir node

3. 下载bsc客户端可执行程序

cd bsc/download

wget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep geth_linux |cut -d\" -f4)

chmod o+x geth_linux

4. 下载解压配置文件

cd bsc/download

wget $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep mainnet |cut -d\" -f4)
unzip mainnet.zip

5. 下载解压snapshot数据文件

官方文档:https://github.com/bnb-chain/bsc-snapshots

sudo amazon-linux-extras install epel

sudo yum install aria2

cd bsc/download

aria2c -o geth.tar.lz4 -s14 -x14 -k100M "https://download.bsc-snapshot.workers.dev/geth-20221008.tar.lz4" -o geth.tar.lz4

nohup tar -I lz4 -xvf geth.tar.lz4 &

6. 制作full node

cd bsc

mv download/server/data-seed/geth  node/

mv download/config.toml .

mv download/genesis.json .

mv download/geth_linux .

7. 启动fullnode

./geth_linux --config ./config.toml --datadir ./node --diffsync --cache 8000 --rpc.allow-unprotected-txs --txlookuplimit 0

查看运行日志:

tail -20 bsc/node/bsc.log

8. 查看运行状态

启动以后会产生bsc/node/geth.ipc文件

./geth_linux attach node/geth.ipc

> eth.syncing

9. 查看运行进程,关闭进程

ps -aux | grep geth

关闭bsc

kill 进程id

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qiuzen

您的资助将帮助我创作更好的作品

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值