wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
tar zxvf go1.13.4.linux-amd64.tar.gz -C /usr/local
# /etc/profile
export GOROOT=/usr/local/go # 安装目录
export GOPATH=/home/ouweibin/go-1.13 # 第三方包安装目录
export PATH=$PATH:/usr/local/go/bin:/home/ouweibin/go-1.13/bin
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,direct
有疑问加站长微信联系(非本文作者)