centos快速安装go环境

wget https://studygolang.com/dl/golang/go1.13.4.linux-amd64.tar.gz  #下载
tar -xzf go1.13.4.linux-amd64.tar.gz -C /usr/local


vim /etc/profilevim /etc/profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/gocode
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source /etc/profile


go version

猜你喜欢

转载自blog.csdn.net/abiao555/article/details/107936986