zoukankan      html  css  js  c++  java
  • 以太坊私有链搭建

    系统环境


    Ubuntu: 16.04;    go-ethereum: v1.6.1;    solc: 0.4.11

    安装步骤


    1、在ubuntu 16.04下安装go-ethereum客户端,安装方法如下(参考①):

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

    如果是内部网络或使用代理上网,sudo后面加“-E“,如:“sudo -E apt-get install software-properties-common”

    安装完毕后输入“geth version”可以查看版本信息,输出

    Geth
    Version: 1.6.1-stable
    Git Commit: 021c3c281629baf2eae967dc2f0a7532ddfdc1fb
    Architecture: amd64
    Protocol Versions: [63 62]
    Network Id: 1
    Go Version: go1.8.1
    Operating System: linux
    GOPATH=
    GOROOT=/usr/lib/go-1.8

    输入geth –help显示其他命令(参考②)。

    2、安装solc(参考③).

    Solc环境主要是用来编译solidity源码。Solidity是以太坊智能合约的编码语言,类似JavaScript。

    sudo add-apt-repository ppa:ethereum/ethereum
    sudo apt-get update
    sudo apt-get install solc

    安装完毕使用solc –version查看版本。

    solc, the solidity compiler commandline interface
    Version: 0.4.11+commit.68ef5810.Linux.g++

    参考


    ①,go-ethereum的ubuntu安装方法

    ②,geth命令选项

    ③,solc安装

  • 相关阅读:
    Word批量转PDF或者图片
    sqlite3数据c/c++接口编程<linux,window>
    静态库和动态库
    QT信号和槽
    C程序编译过程
    Volatile关键字
    端口复用setsockopt
    深入理解epoll(转载)
    临时变量
    json学习随笔
  • 原文地址:https://www.cnblogs.com/eczhou/p/7860624.html
Copyright © 2011-2022 走看看