Ubuntu16.04 HyperLedger Fabric v1.1.0 Environment Preparation

Source: Internet
Author: User
Tags creative commons attribution gpg install node docker compose docker run hyperledger fabric

 

First, the Environment Preparation 1.1 Ubuntu installs the Crul
sudo Install Curl

Curl is an open source file Transfer tool that works with URL syntax in the command line mode. It is widely used in Unix, multiple Linux distributions, and has a ported version of DOS and Win32, Win64.

Role: File transfer

1.2 Installing Docker and Docker Compose

Docker-compose is a component that supports bulk creation of Docker containers through template scripting.

    • Pre-Preparation:

  Since the Docker version in the APT official library may be older, uninstall the old version that may exist:

sudo apt-get remove Docker-engine docker-ce Docker.io

  Update APT Package index:

sudo apt-get update

    • Configure the CE environment (Docker CE (Community Edition), which is the Docker Community Edition)
    1. Configure apt to allow a mirrored installation to be pulled in HTTPS mode:

      $ sudo apt-get install     apt-transport-https     ca-certificates     Curl     Software-properties-common

    2. Add Docker official GPG key:

      $ Curl-fssl HTTPS://DOWNLOAD.DOCKER.COM/LINUX/UBUNTU/GPG | sudo apt-key add-

      Checksum 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 .

      $ sudo apt-key fingerprint 0ebfcd88

    3. Configure the stable image with the following command
      $ sudo add-apt-repository "Deb [ARCH=AMD64] Https://download.docker.com/linux/ubuntu $ (lsb_release-cs) stable"

    • Installing Docker
    1. Update APT Package index
      $ sudo apt-get update

    2. Install the latest version of Docker
      sudo apt-get install Docker-ce

      S

    3. Verify that Docker is installed successfully
      $ sudo docker run Hello-world

This command downloads a test image, launches a container to run the image, prints some information, and exits.

     

Refer to the Official tutorial: https://docs.docker.com/install/linux/docker-ce/ubuntu/#supported-storage-drivers

  At this point, Docker has been installed successfully on Ubuntu!

1.3 Installing go and NodeJS1.3.1 go

  To install the Go Language pack:

$ Curl-o https://storage.googleapis.com/golang/go1.10.1.linux-amd64.tar.gz

When the download is complete, unzip to the/usr/local directory:

sudo tar -c/usr/local-xzf go1.10.1.linux-amd64.tar.gz

  To configure the GO locale variable:

Enter the. BASHRC Configuration environment variable:

$ sudo vim ~/. BASHRC or: $ sudo vim/etc/profile

Add the following code to the last side:

Export gopath=/usr/local/goexport path= $GOPATH/bin: $PATH

  

Save, exit.

To make an environment variable effective:

$ source ~/. BASHRC or: $ source/etc/profile

  

  After viewing the version number no problem, the configuration is successful.

1.3.2 node. js

Download node. js

$ CURL-SL https://

Install node. js

sudo Install -y Nodejs

  

Check version:

  

"Haste, if there is a mistake, please correct me! | | Welcome to learn to communicate together, please leave a comment in the comments area! "

This work is licensed under the Creative Commons Attribution-NonCommercial use-Share 4.0 International license agreement in the same way. 】

"Reprint please contact Bo Master, agree after must indicate source:http://www.cnblogs.com/X-knight/"

Ubuntu16.04 HyperLedger Fabric v1.1.0 Environment Preparation

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.