ETH钱包(geth)安装 Ubuntu

版权声明:需要帮助可联系本人 QQ 422933159 https://blog.csdn.net/yaban8347/article/details/82182579

GETH Deploy

注意:同步全部数据所需内存较大,推荐使用500G的固态硬盘

一.下载Linux x64

wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.1-1e67410e.tar.gz

其他版本下载

二.解压并打开

# 解压    tar -xzvf geth-linux-amd64-1.8.1-1e67410e.tar.gz
# 打开    cd geth-linux-amd64-1.8.1-1e67410e/

三.编写启动脚本

vim geth_start.sh

nohup ./geth --syncmode "fast" --datadir ./mainnet  --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --rpcapi "web3,eth,net,personal,db,admin" --rpccorsdomain * > ./geth.log &2>1 &

 启动参数详解

四.进入web3.js控制台并查看geth同步情况

cd /coin/geth

./geth attach http://127.0.0.1:8545
eth.syncing

#返回 false 同步完成

希望可以帮助到大家,谢谢!

猜你喜欢

转载自blog.csdn.net/yaban8347/article/details/82182579