Swarm BZZ主网自建xDAI EndPoint Rpc最新教程
本篇教程的内容为“在windows系统下自建Bee rpc的方法”,自建rpc可以提高节点连接的上限,不受官方节点的限制,希望能对您有所帮助。
重要:自建rpc为防止其他非自己部署节点请求,强烈建议设置安全组只允许自己节点ip地址访问。安全组设置帮助
推荐购买YINGSOO云主机作为RPC服务器,推荐配置为:8核CPU 8G内存 150G硬盘 带宽建议10~20M
此以windows2016为例,其它windows系统操作一样
1、下载openethereum 并安装:
https://github.com/openethereum/openethereum/releases/tag/v3.2.6

可直接复制这个链接下载
https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-windows-v3.2.6.zip
下载后将压缩包解压出来 openethereum.exe, 比如放在 d:\openethereum 目录

2、启动 openethereum.exe
建立目录D:\openethereum\data ,在开始->运行->cmd
执行如下命令
D:\openethereum\openethereum.exe --chain=xdai --base-path=D:\openethereum\data
--db-path=D:\openethereum\data\db --jsonrpc-hosts='all' --jsonrpc-interface=all --jsonrpc-threads=8

执行后就是等待了cmd窗口不要关闭,保持稳定运行即可,这个可能几小时到1天不等,
3、端口放行
注意: 必须 在系统里面或者服务商那里要放行 8545 和 30303 端口,不然无法通信
4、使用自建rpc:
在Bee 的配置中添加 swap-endpoint: http://你主机IP:8545
二、Linux系统下自建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
Swarm/BZZ相关必读:
1、《swarm bzz挖矿资料大全》简介、教程、兑票全收录,实时更新!
3、BZZ白皮书(中文版)官方PDF下载_Swarm白皮书下载
7、服务器为什么适合用来挖Swarm矿?在带宽方面有哪些优势?
提示:以上内容仅供参考,单节点更快的硬盘读写和更大的带宽均可提高出票概率。若需要 “BZZ挖矿服务器” ,请联系YINGSOO官方客服。
YINGSOO最新推出Chia奇亚农场服务器、Bzz蜂群挖矿服务器、Bzz蜂群母鸡服务器、Bzz云节点服务器、国内矿机海外托管、Swarm Bzz挖矿教程【图文教程】、Swarm Bzz挖矿教程【视频教程】,《swarm bzz挖矿资料大全》,Bzz节点租用请咨询YINGSOO客服!官网WWW.YINGSOO.com
本文链接:https://www.yingsoo.com/news/news/30840.html
版权声明:本站文章来源标注为YINGSOO的内容版权均为本站所有,欢迎引用、转载,请保持原文完整并注明来源及原文链接。禁止复制或仿造本网站,禁止在非www.yingsoo.com所属的服务器上建立镜像,否则将依法追究法律责任。本站部分内容来源于网友推荐、互联网收集整理而来,仅供学习参考,不代表本站立场,如有内容涉嫌侵权,请联系alex-e#qq.com处理。