- wget https://studygolang.com/dl/golang/go1.14.2.linux-amd64.tar.gz
- tar -zxvf go1.14.2.linux-amd64.tar.gz -C /usr/local/
- 写入/etc/profile
export GOROOT=/usr/local/go
export GOPATH=/var/www/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export LD_LIBRARY_PATH=/usr/local/lib
有疑问加站长微信联系(非本文作者)