In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
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!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.