先说说啥是hyper ledger吧:
官方文档:https://hyperledger-fabric.readthedocs.io/en/latest/index.html
https://www.infoq.cn/article/hyperledger-fabric-architecture-trap
下面是安装的路:
系统macOS
1.按照这个:https://www.jianshu.com/p/e108cf655c0f
运行网络的时候出现下面的错:
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (404): {“message”:“network e2ecli_default not found”}
2.按照这个装
https://www.jianshu.com/p/8beb3a355f99
brew unlink node
出错:Error: No such keg: /usr/local/Cellar/node
curl -sSL https://goo.gl/Gci9ZX | bash
出错:curl: (7) Failed to connect to goo.gl port 443: Operation timed out
3.无奈装不上选择换系统
准备在虚拟机ubuntu系统上测试安装
本来想用这个ubuntu 16:
https://www.cnblogs.com/preminem/p/7729497.html
但是发现安装的是这个版本的ubuntu18.04
https://www.jianshu.com/p/4f58e0fcb9f9
到第8步的时候
检验环境变量不成功
fabric-ca-client version
行吧因为这是mac的安装教程还是回到mac上:
https://blog.csdn.net/a394268045/article/details/79649737
版本是git checkout v1.4.1
在漫长的 sh bootstrap.sh之后多加一步修改环境变量:
vi ~/.bash_profile
然后试着打开:./byfn.sh -m up
终于成功了。。太不容易了
果断关掉:
./byfn.sh -m down