fabric first-network 原

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章