Ubuntu16.04怎么安装Hyperledger

本篇内容介绍了“Ubuntu16.04怎么安装Hyperledger”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

前提,安装docker, curl, go,nodejs,jdk,参考https://my.oschina.net/u/1760711/blog/1530513

1. 下载 运行 https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh

$ cd ~/dev/hyperledger
$ ./bootstrap.sh

这个脚本中内置了一个版本,我运行的时候是1.0.4。

2. 设置GOPATH为/opt/gopath,因为example中很多yaml写死了这个路径,所以下面执行git clone目录应为 /opt/gopath/src/github.com/hyperledger/

git clone https://github.com/hyperledger/fabric.git
git clone https://github.com/hyperledger/fabric-ca.git

3. Run e2e test 

cd /opt/gopath/src/github.com/hyperledger/fabric/examples/e2e_cli/
./network_setup.sh up

“Ubuntu16.04怎么安装Hyperledger”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!