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