Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to configure the Hyperledger Fabric environment

Shulou Source: shulou.com Published: 2022-06-02 04:48:28 10月03日 Update

This article mainly explains "how to configure the Hyperledger Fabric environment". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to configure the Hyperledger Fabric environment.

Operating system:

(macos, ubuntu, centos)

Docker environment support (Docker, Docker Compose)

Related documents

Ubuntu16.04 installs Docker and Docker Compose

Fabric component Docker image

1 、 hyperledger/fabric-peer;2 、 hyperledger/fabric-orderer;3 、 hyperledger/fabric-tools;4 、 hyperledger/fabric-baseos

Docker image pull hyperledger/fabric-tools:x86_64-1.0.0docker image pull hyperledger/fabric-orderer:x86_64-1.0.0docker image pull hyperledger/fabric-peer:x86_64-1.0.0docker image pull hyperledger/fabric-baseos:x86_64-0.3.1

Fabric source code library

Download the hyperledger-fabric source code library

Switch the version of the source code library-- > release-1.0

Git checkout release-1.0

Tool compilation

Cryptogen: generate related certificates

Cd $GOPATH/src/github.com/hyperledger/fabric/common/tools/cryptogen/go install

Configtxgen: generate the content related to the channel configuration of the creation block

Cd $GOPATH/src/github.com/hyperledger/fabric/common/tools/configtxgen/go install

Fabric-samples

Build the first Fabric network

1. Byfn.sh-m generate build configuration file

2. Byfn.sh-m up starts the network

3. Byfn.sh-m down shuts down the network

File path under first-sample/firstnetwork

Public Services of base docker compose

Byfn.sh startup script

Generate the appropriate configuration files and put them in the channel-artifacts and crypo-config directories:

Configtx.yaml

Crypto-config.yaml

Used to start the network:

Docker-compose-cli.yaml

Docker-compose-couch.yaml

Docker-compose-e2e-template.yaml

Docker-compose-e2e.yaml

Script test scripts (create channels, add channels, install chain codes, instantiate chain codes, interact)

Methods in byfn.sh

-m up startup-m down shutdown-m restart restart-m generate generates the corresponding certificate and creation block-c channel name default mychannel-t client timeout default 10 seconds-s database client, default go-leveldb so far, I believe you have a deeper understanding of "how to configure the Hyperledger Fabric environment", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Configuration environment network channel generation content file source code block client client method script certificate learning utility deeper operating system public service interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info Huawei Linux Shulou Technology