Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How HyperLedger Fabric 2.0-release tests network deployment

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces HyperLedger Fabric 2.0-release how to test network deployment, the article is very detailed, has a certain reference value, interested friends must read it!

1. Environment preparation system tools version CentOS7Docker18.09.4Docker-compose1.23.2GO1.13.42. Download the source code

1. Create a go working directory

Mkdir gomkdir go/srcmkdir go/pkg mkdir go/binexport GOPATH=xx/go

two。 Create a hyperledger directory

Mkdir go/src/github.com/hyperledger

3. Download the fabric release-2.0 source code

Cd go/src/github.com/hyperledgergit clone https://github.com/hyperledger/fabric.gitcd fabric & & git checkout release-2.0

If you think git clone is slow, you can refer to how to quickly clone github code base.

3. Compile binaries and docker images

Currently open the console in the fabric directory and enter the fabric directory and execute the following command

Make all

It may be prompted that gcc is not installed, so you only need to install it at this time.

Yum install gcc

When the execution is complete, check the compiled binaries as follows:

Ll build/bin

The console output is as follows:

After the execution is completed, check the compiled Docker image as follows:

Docker images | grep 2.0 | grep fabric

The console output is as follows:

4. Run the test network

1. Copy the compiled binaries to the fabric-samples directory

Cp-r build/bin fabric-samples

two。 Network preparation

Cd fabric-samples/first-network. / byfn.sh generate

Generate the certificate file and the channel file as follows

3. Run the test network

. / byfn.sh up

The console outputs the following prompt to run successfully

Check the docker status as follows:

Docker ps | grep fabric

The implementation results are as follows:

These are all the contents of the article "how HyperLedger Fabric 2.0-release tests network deployment". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report