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