使用go 1.14 版本
#wget https://golang.org/dl/go1.14.15.linux-amd64.tar.gz
#tar zxvf go1.14.15.linux-amd64.tar.gz
#mv go /usr/local/
#vim /etc/profile
export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export GOPKG=$GOROOT/pkg/tool/linux_amd64
export GOARCH=amd64
export GOOS=linux
export GOPATH=/opt/golang
export PATH=$PATH:$GOBIN:$GOPKG:$GOPATH/bin
#source /etc/profile