(A) HyperLedger Fabric 2.0-release test network deployment

List of:
(a) HyperLedger Fabric 2.0-release test network deployment
(two) Fabric2.0 first-network generates configuration instructions
(three) Fabric2.0 startup script network configuration analysis

1. Preparing the Environment

System Tools version Remark
CentOS 7
Docker 18.09.4
Docker-compose 1.32.2 Reference: CentOS7 installation Docker-compose recommendations
GO 1.13.4 Reference: CentOS7 install Go

2. Download Source

1. Create a working directory go

mkdir go
mkdir go/src
mkdir go/pkg 
mkdir go/bin
export GOPATH=xx/go

2. Create a directory hyperledger

mkdir go/src/github.com/hyperledger

3. Download the fabric release-2.0-source

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

If you feel git clone slow refer to how quickly clone github code base

3. compiled binary files and image docker

The current directory in fabric
open the console into the fabric catalog, execute the following command

make all

The middle may not be prompted to install gcc, this time only need to be installed

yum install gcc

After execution, view the compiled binary files as follows:

ll build/bin

Console output is as follows:
Here Insert Picture Description

After execution, the compiler Docker view mirror as follows:

docker images |grep 2.0|grep fabric

Console output is as follows:
Here Insert Picture Description

4. Run the test network

1. Copy the compiled binary files to the fabric-samples directory

cp -r build/bin fabric-samples

2. Network ready

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

Generate a certificate file, and the file path follows
Here Insert Picture Description

3. Run the test network

./byfn.sh up

Console output that is run following prompt success
Here Insert Picture Description

View docker states are as follows:

docker ps |grep fabric

Execution results are as follows:
Here Insert Picture Description

5.END

Official test network operation ends, the next will be 2.0 deployment configuration, contract and raft consensus were to continue to learn, please sustained attention.

Released nine original articles · won praise 2 · Views 851

Guess you like

Origin blog.csdn.net/qq_28540443/article/details/104265844