Hyperledger-fabric Installation Development Deployment

Source: Internet
Author: User
Tags curl garbage collection git clone

The tutorial default environment is ubuntu16.04

1. CURL

Curl is a file transfer tool that works under the command line using URL syntax, which was first released in 1997. It supports file uploads and downloads, so it is a comprehensive transfer tool, but traditionally, it is customary to call curl as a download tool. Curl also contains libcurl for program development.

The communication protocols supported by Curl are FTP, FTPS, HTTP, HTTPS, TFTP, SFTP, Gopher, SCP, Telnet, DICT, FILE, LDAP, LDAPS, IMAP, POP3, SMTP, and RTSP.

The platforms supported by Libcurl are Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HP-UX, IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Symbian, Amiga, OS/2, BeOS, Mac os X, Ultrix, QNX, BlackBerry Tablet os, OpenVMS, RISC OS, Novell NetWare, DOS, etc.

Apt-get Install Curl

2, node version 6.9.x or higher, and 8.4.0 or higher (node v7+ is not supported)

CURL-SL https://deb.nodesource.com/setup_6.x | SUDO-E Bash-  execute apt-get install nodejs download node and NPM

View version number after download:

$ node-v
v6.13.1
$npm-v
3.10.10

3. Installing Docker and Docker-compose

$ apt-get Install Docker.io
$ apt-get Install docker-compose

$ docker-v
Docker version 1.13.1, build 092cba3< c3/>$ docker-compose-v
docker-compose version 1.8.0, build unknown

4. Install the Go language

Go is a programming language developed by Google that is statically strong-typed, compiled, and styled, and has a garbage collection function. To facilitate search and identification, it is sometimes referred to as Golang.

# Download the Linux version of Go install package
$ wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz # Unzip the installation package $ tar-c/USR/LOCAL-XZF go1.8.3.linux- Amd64.tar.gz

Set environment variables, create Workspacego folder under/usr/local, set for environment variables

$ gedit ~/.BASHRC
# Add three lines of code at the end of the open file
export goroot=/usr/local/go
export Gopath=/usr/local/workspacego
Export path= $GOROOT/bin: $PATH
# Save exit make settings take effect
$ source ~/.BASHRC
# View go version
$ go Release
go Version go1.8.3 Linux/amd64

5. Download the Fabric source code

Using the git command to download the fabric source code, the first need to create a corresponding directory, and then enter the directory, git download source code

# download Install git
$ apt-get install git
# Create source directory
$ mkdir-p/opt/gopath/src/github.com/hyperledger
$ cd/opt/ Gopath/src/github.com/hyperledger
$ git clone https://github.com/hyperledger/fabric.git
$ cd Fabric
# Use Git to get the specified version of
git checkout v1.0.1

6. Download the fabric Docker image

The official has already written a script to download the image, in/OPT/GOPATH/SRC/GITHUB.COM/HYPERLEDGER/FABRIC/EXAMPLES/E2E_CLI

$ cd examples/e2e_cli
$ source download-dockerimages.sh-c x86_64-1.0.1-f x86_64-1.0.1
# View downloaded image
$ docker i Mages

At this point, everything needed to run the Hyperledger-fabric has been completed.

If there is a wrong place, please criticize me.


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.