下载地址:https://studygolang.com/dl

安装步骤:

tar xf go1.15.linux-amd64.tar.gz -C /usr/local/

配置go的环境变量:

#/etc/profile.d/go.sh
export GOPROXY=https://mirrors.aliyun.com/goproxy/
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin

source /etc/profile.d/go.sh