1.下载golang
2.tar解压
3.编辑/etc/profile 添加以下内容
export GOROOT=/usr/local/go export GOBIN=$GOROOT/bin export PATH=$PATH:$GOBIN export GOPATH=$HOME/goproj
4.source /etc/profile
5.go version