This is a creation in Article, where the information may have evolved or changed.
Installing 1.5.3
Download
wget https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz
Extract
Tar zxvf go1.5.3.linux-amd64.tar.gz
Move to/usr/local/go1.5
MV go/usr/local/go1.5
Configure the GO environment
Vi/etc/profile
#Go Configurationexport goroot=/usr/local/go1.5 This is your Go install directory Export GOARCH=AMD64 This is your processor type ... For example I386,amd64export Goos=linux This is your operating system type. Export Gopath=/root/workstation/go This is your Go project folder, if we use a compiled package, we do not need this export path= $GOROOT/bin: $PATH Your go Command folder, Please keep the default ...
Effective environment variables
Source/etc/profile
Run
Go version
You can see the go version is installed successfully