参考:https://blog.csdn.net/hehui0316/article/details/106295487?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.nonecase
- 环境,需要提前安装好以下环境
git curl pip golang docker docker-compose
- 下载fabric
git clone https://github.com/hyperledger/fabric.git
cd fabric
git branch -a
# 改变fabric版本为1.4.0
git checkout release-1.4
- 下载docker镜像依赖
cd scripts
source ./bootstrap.sh -b
- 二进制文件
tar -zxvf hyperledger-fabric-ca-linux-amd64-1.4.0.tar.gz
tar -zxvf hyperledger-fabric-linux-amd64-1.4.0.tar.gz
将两文件内容合并后,将bin和config文件拷贝到fabric目录下,并添加到环境变量中
- 下载fabric-samples
cd scripts
git clone https://github.com/hyperledger/fabric-samples
cd fabric
git branch -a
# 改变fabric-samples版本为1.4.0
git checkout release-1.4
- 启动fabric网络
cd fabric-samples/first-network
./byfn.sh up
===================== Query successful on peer1.org2 on channel 'mychannel' =====================
========= All GOOD, BYFN execution completed ===========
_____ _ _ ____
| ____| | \ | | | _ \
| _| | \| | | | | |
| |___ | |\ | | |_| |
|_____| |_| \_| |____/
网友评论