golang压缩包方式安装 - Thu, Mar 5, 2020
golang压缩包方式安装
安装go
sudo tar -C /usr/lib -xzf go$VERSION.$OS-$ARCH.tar.gz
sudo ln -snf /usr/lib/go/bin/go /usr/local/bin/go
sudo ln -snf /usr/lib/go/bin/gofmt /usr/local/bin/gofmt
go env -w GOPROXY=https://goproxy.io,direct
编辑.bashrc
export GOPATH=${HOME}/go
export PATH=${GOPATH}/bin:$PATH