Swarm BZZ主網(wǎng)自建xDAI EndPoint Rpc最新教程
本篇教程的內(nèi)容為“在windows系統(tǒng)下自建Bee rpc的方法”,自建rpc可以提高節(jié)點連接的上限,不受官方節(jié)點的限制,希望能對您有所幫助。
重要:自建rpc為防止其他非自己部署節(jié)點請求,強烈建議設(shè)置安全組只允許自己節(jié)點ip地址訪問。安全組設(shè)置幫助
推薦購買YINGSOO云主機作為RPC服務(wù)器,推薦配置為:8核CPU 8G內(nèi)存 150G硬盤 帶寬建議10~20M
此以windows2016為例,其它windows系統(tǒng)操作一樣
1、下載openethereum 并安裝:
https://github.com/openethereum/openethereum/releases/tag/v3.2.6

可直接復(fù)制這個鏈接下載
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
執(zhí)行如下命令
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

執(zhí)行后就是等待了cmd窗口不要關(guān)閉,保持穩(wěn)定運行即可,這個可能幾小時到1天不等,
3、端口放行
注意: 必須 在系統(tǒng)里面或者服務(wù)商那里要放行 8545 和 30303 端口,不然無法通信
4、使用自建rpc:
在Bee 的配置中添加 swap-endpoint: http://你主機IP:8545
二、Linux系統(tǒng)下自建RPC
1、下載
https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-linux-v3.2.6.zip
常見的Linux系統(tǒng) centOS/Ubuntu……等等 都可安裝, 請先登陸 Linux系統(tǒng)

2、可直接復(fù)制命令
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 &
如果下載失敗建議用其它方式下載后上傳到服務(wù)器 , 此是放在后臺執(zhí)行可在1.log查看運行日志
3、查看日志:
tail -f /home/openethereum/1.log
注意: 必須 在系統(tǒng)里面或者服務(wù)商那里要放行 8545 和30303 端口,不然無法通信,可參考:linux系統(tǒng)防火墻開啟放行其他端口
執(zhí)行后就是等待同步了,保持穩(wěn)定運行即可
4、使用自建rpc:
在Bee 的配置中添加 swap-endpoint: http://你主機IP:8545
Swarm/BZZ相關(guān)必讀:
1、《swarm bzz挖礦資料大全》簡介、教程、兌票全收錄,實時更新!
3、BZZ白皮書(中文版)官方PDF下載_Swarm白皮書下載
7、服務(wù)器為什么適合用來挖Swarm礦?在帶寬方面有哪些優(yōu)勢?
提示:以上內(nèi)容僅供參考,單節(jié)點更快的硬盤讀寫和更大的帶寬均可提高出票概率。若需要 “BZZ挖礦服務(wù)器” ,請聯(lián)系YINGSOO官方客服。
YINGSOO最新推出Chia奇亞農(nóng)場服務(wù)器、Bzz蜂群挖礦服務(wù)器、Bzz蜂群母雞服務(wù)器、Bzz云節(jié)點服務(wù)器、國內(nèi)礦機海外托管、Swarm Bzz挖礦教程【圖文教程】、Swarm Bzz挖礦教程【視頻教程】,《swarm bzz挖礦資料大全》,Bzz節(jié)點租用請咨詢YINGSOO客服!官網(wǎng)www.sddonglingsh.com
本文鏈接:http://www.sddonglingsh.com/news/news/30840.html
版權(quán)聲明:本站文章來源標注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。