Hyperledger-fabric test Environment Setup Ubuntu

Source: Internet
Author: User

First, the preparatory work

1. System

System version: Ubuntu 18.04 LTS (official website download connection)

Note: If the virtual machine is installed through VMware, memory is recommended to allocate more than 3G, otherwise there may be a low memory condition. You can turn on system monitoring in the Ubuntu system to view system memory.

2. Software

The software to be installed in this system version: Vim, Git, Golang, Docker, Docker-compose, Curl, Openssh-server.

As a simple explanation, Vim is primarily used to edit the configuration file. git is used to download project resources. Golang Language installation package. Docker,docker-compose is a hyperledger dependent tool that must be installed. Openssh-server If you do not install, you cannot use SSH to Telnet to the system via Xshell.

Second, the actual operation

1, install the operating system This example uses a VMware virtual machine. Do not know how to install the Ubun system on the virtual machine partners can Baidu a bit.

Tip: Virtual machine memory is at least 3g, otherwise there is insufficient memory.

2. Install the Software

Install Vim, git, Golang, curl

Installation commands

Installing Docker, Docker-compose

Installation commands

Version of each software after installation is complete

Installed versions of each software

3, Hyperledger-fabric Environment construction

Get the latest engineering code to Https://github.com/hyperledger/fabric

Get the latest Code command

Into the/FABRIC/EXAMPLES/E2E_CLI directory, you can see that there is a network_setup.sh script

Files under the E2E_CLI directory

Execute command sudo bash network_setup.sh up to automatically download project-dependent Docker images. This process downloads more content, need to wait a while, time is longer.

Execute sudo bash network_setup.sh up command

There may be an error in the middle, such as re-executing the sudo bash network_setup.sh up command again. A small partner with no error can be ignored.

The connection was reset error

Note: This connection error may occur several times in the middle, just repeat the above command.

After the download is complete, the identity fabric environment is finished and the fabric test project is started when printing occurs.

Fabric test Project starts running

Finally, the following logo appears, and the Fabric test project completes the startup. The environment has been built.

The Fabric test Project runs successfully
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.