1. 拉取docker ubuntu镜像, 并升级apt-get

    apt-get update
  2. 安装Node.js

    apt-get install nodejs
    apt-get install npm
  3. 安装web3

    apt-get install git
    npm install web3@0.20.6
  4. 安装go

    apt-get install golang-go
  5. 安装geth

    apt-get install software-properties-common
    add-apt-repository -y ppa:ethereum/ethereum
    apt-get install ethereum
  6. 安装solcjs

    npm install -g solc

开始后注意事项:
本geth无rpc参数
打开可远程连接geth的命令为

geth --datadir private/ --http --http.addr 0.0.0.0 --http.port 8545

人间喜剧观察员
1 声望1 粉丝