网站运营
位置:首页>> 网站运营>> Windows10下hyperledger fabric1.4环境搭建过程图解

Windows10下hyperledger fabric1.4环境搭建过程图解

作者:namnil  发布时间:2023-08-05 17:54:42 

标签:Windows10,hyperledger,fabric1.4,环境搭建

目录Windows10下hyperledger fabric1.4环境搭建PrerequisitesWindows10专业版Git bashcURLGO Progamming LanguageDocker and Docker-composeInstall Samples, Binaries and Docker Imagesshared drivers执行


Windows10下hyperledger fabric1.4环境搭建

Prerequisites

大部分内容参考官方配置

Windows10专业版

1.学校提供了win10专业版激活工具,不过需要在win10专业版的环境下激活,所以要重装系统(慎重!)。

2.一站式服务平台


Windows10下hyperledger fabric1.4环境搭建过程图解

3.其他方式请自查

Git bash

1、安装

2、设置gitautocrlffalselongpathstrue

设置


git config --global core.autocrlf false
git config --global core.longpaths true

查看


git config --get core.autocrlf
git config --get core.longpaths

cURL

windows extras中提示git自带的curl版本不够新会报错,然而我的git自带的curl不影响,所以没有专门去升级

Windows10下hyperledger fabric1.4环境搭建过程图解GO

ProgammingLanguage

1.安装go,version: 1.13.1设置环境变量GOROOT

2.go的安装目录GOPATH:工作目录,也就是之后的hyperledger代码的放置目录

Windows10下hyperledger fabric1.4环境搭建过程图解Docker

and Docker-compose安装docker and docker-compose安装docker for windowsdocker for windows自带了docker-compose设置阿里云docker镜像加速(不然之后拉镜像的时候很慢)容器镜像服务控制台,要注册

Windows10下hyperledger fabric1.4环境搭建过程图解

设置docker镜像右键docker进入Settings

Windows10下hyperledger fabric1.4环境搭建过程图解

将复制的镜像地址写入Registry mirrors

Windows10下hyperledger fabric1.4环境搭建过程图解Install

Samples, Binaries and Docker Imagesshared drivers官方提示Share your local drives (volumes) with Docker Desktop, so that they are available to your Linux containers.右键docker进入Settings

Windows10下hyperledger fabric1.4环境搭建过程图解
Windows10下hyperledger fabric1.4环境搭建过程图解

执行

拉代码git clone https://github.com/hyperledger/fabric.git

代码拉到$GOPATHsrc目录下(没有src目录就自己创建)

执行获取镜像脚本./scripts/bootstrap.sh

查看镜像列表docker image list

Windows10下hyperledger fabric1.4环境搭建过程图解

启动

cd scripts/fabric-samples/first-network

初始化./byfn.sh -m generate -c mychannel

开启./byfn.sh -m up -c mychannel

关闭./byfn.sh -m down

Windows10下hyperledger fabric1.4环境搭建过程图解

总结

以上所述是小编给大家介绍的Windows10下hyperledger fabric1.4环境搭建过程图解,希望对大家有所帮助!

来源:https://blog.csdn.net/rabbitmmul/article/details/102394067

0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com