First, the basic Environment 1, cat /etc/debian_version 7.82, uname -r3.2.0-4-amd643, IP (eth0) 10.1.10.1174, Go version go1.4.linux-amd64.tar.gz5, official website https://golang.org/second, install binary go1, download axel -n 10 http:// WWW.GOLANGTC.COM/STATIC/GO/GO1.4.LINUX-AMD64.TAR.GZ2, decompression tar zxvf go1.4.linux-amd64.tar.gz -c  /USR/LOCAL/3, add 1 lines to/etc/profile tac /etc/profile|head -n 1export path= $PATH:/usr/local /GO/BIN4, effective source /etc/profile5, view go version go versiongo version go1.4 linux/amd646, View environment Variables go envgoarch= "AMD64" gobin= "" gochar= "6" goexe= "" gohostarch= "AMD64" gohostos= "Linux" goos= "Linux" gopath= "Gorace=" "goroot="/usr/local/go "gotooldir="/usr/local/go/pkg/tool/linux_amd64 "cc=" gcc "gogccflags="-fPIC -m64 -pthread -fmessage-length=0 "cxx=" g++ "cgo_enabled=" 1 "three, to the normal user to create GO Environment 1, switch User su - jimmy  2, create go directory mkdir ~/go -p3, add 3 lines of content in. BASHRC at the end export goroot=/usr/local/goexport gopath=$ Home/goexport path= $PATH: $GOROOT/bin4, effective SOURCE . BASHRC5, viewing environment variables go envgoarch= "AMD64" gobin= "gochar=" 6 "goexe=" "gohostarch=" AMD64 "gohostos=" Linux "goos=" Linux "Gopath="/home/jimmy/go "gorace=" "goroot="/usr/local/go "gotooldir="/usr/local/go/pkg/tool/linux_amd64 "CC=" GCC " gogccflags= "-fpic -m64 -pthread -fmessage-length=0" cxx= "g++" cgo_enabled= "1" 6, view version go Versiongo version go1.4 linux/amd64
This article is from the "7928217" blog, please be sure to keep this source http://7938217.blog.51cto.com/7928217/1675791
Install the Go language environment