cd /opt/gopath/src/github.com/hyperledger/git
git clone https://github.com/hyperledger/fabric.git 下载fabric源码github
cd /opt/gopath/src/github.com/hyperledger/docker
$ git clone https://github.com/hyperledger/fabric-samples.git 下载fabric案例bootstrap
将/opt/gopath/src/github.com/hyperledger/fabric/scripts/bootstrap.sh复制到/opt/gopath/src/github.com/hyperledger/fabric-samples/下bash
cd /opt/gopath/src/github.com/hyperledger/fabric-samples/curl
$ ./bootstrap.sh 生成bin文件夹以及四个文件,get-byfn.sh、get-docker-images.sh、orderer、peerurl
===> Downloading platform binariesorm
% Total % Received % Xferd Average Speed Time Time Time Currentip
Dload Upload Total Spent Left Speedget
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