美文网首页区块链之虚拟货币
以太坊核心部署 - ETH for Centos

以太坊核心部署 - ETH for Centos

作者: 葱烧烙饼 | 来源:发表于2017-05-23 14:14 被阅读1112次

1.下载相应版本,地址:
找出相应你需要版本:
https://geth.ethereum.org/downloads/

centos下载解压:
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-x.x.x-021c3c28.tar.gz
tar -xzvf geth-linux-amd64-1.6.1-021c3c28.tar.gz
cd geth-linux-amd64-1.6.1-021c3c28
./geth
就直接执行了

后台运行:
nohup ./geth &

(
打开RPC HTTP接口,打开可以用户操作接口等

nohup ./geth --fast --cache=512 --rpc --rpcapi "db,eth,net,web3,personal" &

)

当然相应的配置还是处理的,之后补充吧。

常用命令:
geth attach 绑定当前进程,执行相应操作命令来操控核心。
admin.datadir 查看本地基础目录
eth.blockNumber 查看当前block数

Curl命令测试:

curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' http://localhost:8545

相关文章

网友评论

    本文标题:以太坊核心部署 - ETH for Centos

    本文链接:https://www.haomeiwen.com/subject/bkgbxxtx.html