美文网首页
Ubuntu下以太坊客户端的编译、安装和运行

Ubuntu下以太坊客户端的编译、安装和运行

作者: 朱建涛 | 来源:发表于2018-07-22 13:24 被阅读0次

    一,安装

    1,快速安装
    添加以太坊官方APT源,并安装以太坊客户端

    sudo apt-get install software-properties-common
    sudo add-apt-repository -y ppa:ethereum/ethereum
    sudo apt-get update
    sudo apt-get install ethereum
    

    当新版本geth发表后,可直接通过APT完成geth版本升级

    sudo apt-get update
    sudp apt-get upgrade
    

    2,源码编译安装
    从github上获取go-ethereum源码,然后编译geth

    git clone https://github.com/ethereum/go-ethereum.git
    cd go-ethereum
    make geth
    

    二,运行

    在以太坊公有链上运行一个全节点

    geth --fast --cache=512 --datadir "/home/zhujiantao/eth/net" console
    

    在以太坊测试网络上运行一个全节点

    geth --testnet --fast --cache=512 --datadir "/home/zhujiantao/eth/testnet" console
    

    相关文章

      网友评论

          本文标题:Ubuntu下以太坊客户端的编译、安装和运行

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