fabric first-network

原创
2018/11/26 14:58
阅读数 121

cd /opt/gopath/src/github.com/hyperledger/

git clone https://github.com/hyperledger/fabric.git 下载fabric源码

cd /opt/gopath/src/github.com/hyperledger/

$ git clone https://github.com/hyperledger/fabric-samples.git 下载fabric案例

将/opt/gopath/src/github.com/hyperledger/fabric/scripts/bootstrap.sh复制到/opt/gopath/src/github.com/hyperledger/fabric-samples/下

cd /opt/gopath/src/github.com/hyperledger/fabric-samples/

$ ./bootstrap.sh 生成bin文件夹以及四个文件,get-byfn.sh、get-docker-images.sh、orderer、peer

===> Downloading platform binaries

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

 46 22.6M   46 10.4M    0     0  11146      0  0:35:29  0:16:23  0:19:06     0

然后复制configtxgen和cryptogen文件到bin下

Upgrade your local environment by running

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部