Linux系统下自建xDAI EndPoint Rpc



1、下载

https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-linux-v3.2.6.zip

常见的Linux系统 centOS/Ubuntu……等等 都可安装, 请先登陆 Linux系统

2、可直接复制命令

搭建

wget https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-linux-v3.2.6.zip -O /root/openethereum-linux-v3.2.6.zip
mkdir /home/openethereum
unzip openethereum-linux-v3.2.6.zip -d /home/openethereum/
chmod +x /home/openethereum/openethereum
mkdir /home/openethereum/data

启动

/usr/bin/nohup /home/openethereum/openethereum
--chain=xdai
--base-path=/home/openethereum/data
--db-path=/home/openethereum/data/db
--jsonrpc-hosts="all"
--jsonrpc-interface=all
--jsonrpc-threads=8 > /home/openethereum/1.log 2>&1 &

如果下载失败建议用其它方式下载后上传到服务器 , 此是放在后台执行可在1.log查看运行日志

3、查看日志:

tail -f /home/openethereum/1.log
注意: 必须 在系统里面或者服务商那里要放行 8545 和30303 端口,不然无法通信,可参考:linux系统防火墙开启放行其他端口

执行后就是等待同步了,保持稳定运行即可

4、使用自建rpc:

在Bee 的配置中添加 swap-endpoint: http://你主机IP:8545

标签: linux, swarm, rpc

相关文章

评论已关闭