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.
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)
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
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
- 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"
- Update APT Package index
$ sudo apt-get update
- Install the latest version of Docker
sudo apt-get install Docker-ce
S
- 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