安装fabric二进制文件下载速度慢

安装fabric Samples, Binaries和Docker Images

官方文档:https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html
如果下载最新版本,直接运行:

curl -sSL http://bit.ly/2ysbOFE | bash -s

下载特定版本,如Fabric1.4.4,Fabric-ca1.4.4,Docker images 0.4.18

curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.4 1.4.4 0.4.18

如果使用Docker Toolbox,需要把samples安装到C:\Users下。

主要问题:下载速度慢

解决方法:

方法一:

	连网线,科学上网。

方法二:

	下载https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh自行运行。

方法三:

	结合以上方法,分析bootstrap.sh文件。
	把bootstrap.sh文件保存到本地。
	自行下载fabric binaries,在fabric-samples中解压生成bin和config。
	下载链接:https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-windows-amd64-1.4.4.tar
	(注:不同版本不同系统的链接不同,根据需要自行修改。)
	在bootstrap.sh文件中注释以下内容,之后运行。
pullBinaries() {

    # echo "===> Downloading version ${FABRIC_TAG} platform specific fabric binaries"
    # download "${BINARY_FILE}" "https://github.com/hyperledger/fabric/releases/download/v${VERSION}/${BINARY_FILE}"
    # if [ $? -eq 22 ]; then
    #    echo
    #    echo "------> ${FABRIC_TAG} platform specific fabric binary is not available to download <----"
    #    echo
    #    exit
    # fi

    echo "===> Downloading version ${CA_TAG} platform specific fabric-ca-client binary"
    download "${CA_BINARY_FILE}" "https://github.com/hyperledger/fabric-ca/releases/download/v${CA_VERSION}/${CA_BINARY_FILE}"
    if [ $? -eq 22 ]; then
        echo
        echo "------> ${CA_TAG} fabric-ca-client binary is not available to download  (Available from 1.1.0-rc1) <----"
        echo
        exit
    fi
}
  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值