下载
wget https://studygolang.com/dl/golang/go1.14.6.linux-amd64.tar.gz
#https://gomirrors.org/dl/go/go1.14.6.linux-amd64.tar.gz
tar -zxvf go1.14.6.linux-amd64.tar.gz
mv go /golang/go
cat <<EOF >> /etc/profile
export GOROOT=/golang/go
export GOPATH=/golang/gopath
export PATH=\$GOROOT/bin:\$PATH
EOF
source /etc/profile
go version
网友评论