Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. With simple, fast, safe, parallel, fun, open source, memory management, V array security, fast compilation features.

Go is designed as a system programming language for large central servers with Web servers, storage clusters, and the like. Go is arguably more efficient than most other languages in the world of high performance distributed systems. It provides a huge amount of parallel support, which is great for game server development.

Today’s content to share with you is: Install Go environment under Linux.


My configuration

VPS: VirMach is $1.25 a month VPS

Ubuntu Server 16.04 LTS 64bit Minimal

You can create your own VIRTUAL machine and install a Server version of Linux, or choose a shared host here

Log in Linux

For Mac or Linux users, run SSH [email protected] to log in to the host. For Windows users, use SecureCRT to log in to the host VM

Installing the Go Environment

Golang can be downloaded from https://golang.org/dl/

Open the website to download address choose corresponding system version, I choose go1.10.3.linux-amd64.tar.gz:https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz copy download link here


CD goes to the directory you used to store the installation package. Just type in CD. Then perform

Wget HTTP: / / https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz

The download is complete


Run tar to decompress the directory /usr/loacl to obtain the go folder

Tar -c /usr/local-zxvf go1.10.3.linux-amd64.tar.gz

Add /usr/loac/go/bin to the PATH variable. Add to /etc/profile or $HOME/.profile

Sudo apt-get install vim = sudo apt-get install vim

vim /etc/profile

// Add it on the last line

export GOROOT=/usr/local/go

export PATH=$PATH:$GOROOT/bin

// wq save and exit

source /etc/profile

Run the go version command. If the actual version is displayed, the GO environment is successfully installed.