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

写在前面

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

准备环境

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

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

开始构建

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

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

2.启动OpenEthereum

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

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

启动方式(2)

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

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

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

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

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

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

猜你喜欢

转载自blog.csdn.net/weixin_39842528/article/details/108270315