江山川资讯

Centos6安装go-ethereum教程

时间:2020-11-14 阅读:4167 来源:江山川

yum install  -y git go git

git clone https://github.com/ethereum/go-ethereum.git

cd go-ethereum/

git checkout release/1.8

make all

echo "export PATH=$PATH:/eth/go-ethereum/build/bin" >> /etc/profile

source /etc/profile

geth version

cd ../

nohup geth --syncmode "fast" --cache=10000 --datadir “/eth/data/“ --rpc --rpcapi db,net,eth,web3,personal --rpcaddr 0.0.0.0 --rpccorsdomain "*" 2>>/eth/log/geth.log &

geth attach /data/geth/geth.ipc


服务器放在香港,硬盘最好使用SSD高效云盘,最低容量在300GB,带宽为10M。CPU在4核8G,整个同步数据预计5-7天。




成都江山川科技有限公司 总部