以太坊parity2.72节点客户端部署安装

秒速五厘米 2022-12-01 15:44 302阅读 0赞

写在前面

1.部署的操作系统:ubuntu16.06
2.以太坊版本:parity2.7.2稳定版
parity官网 :https://www.parity.io

准备环境

  1. 先排查必须环境是否已经安装

1:llvm,make,cmake,gcc,g++,clang,pkg-config,file安装环境
2:rust,perl,yasm,cargo安装环境
2:查看当前客户端不同操作系统运载量统计以及相关安装操作说明(https://snapcraft.io/parity)
如下图不同操作系统的市场占比
不同操作系统所占市场

开始构建

1.下载以太坊节点
  1. $ git clone https://github.com/paritytech/parity-ethereum
  2. $ cd parity-ethereum
  3. $ cargo build --release --features final

这将在./target/release子目录中生成一个可执行文件。(这个过程可能出错,注意检查自己的环境,依赖是否都安装成功或者安装的是否是最新版本)

2.启动OpenEthereum

以太坊有三种同步方式(full,fast,light),这里我们使用light同步
启动方式(1)

  1. $ ./target/release/parity --light --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis all --jsonrpc-hosts all

启动方式(2)

  1. $ parity --light --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis all --jsonrpc-hosts all

同样的为了防止parity停机或停止同步,你还可以简单的这样启动
启动方式(3)

  1. $ nohup parity --light --jsonrpc-interface all --jsonrpc-cors all --jsonrpc-apis all --jsonrpc-hosts all >parity.log 2>&1 &

这里可以尝试一下访问当前同步的最新区块高度

  1. $ curl -s -X POST -H "Content-Type":application/json \
  2. --data '{"jsonrpc":"2.0", "method":"eth_blockNumber","params":[],"id":67}' \
  3. localhost:8545

以太坊启动参数详细配置说明可以查看这篇文章
https://blog.csdn.net/weixin_39842528/article/details/108232742
如果其它问题也可以联系博主,看到消息,空闲时间也会一一回复
在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,302人围观)

还没有评论,来说两句吧...

相关阅读

    相关 parity安装

    写在前面: Ethereum目前有两种节点,分别是go-ethereum(简称geth)和Parity。因为Parity出现的时间较晚,解决了geth节点中的许多问题,拥