1.wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -zxvf go1.6.2.linux-amd64.tar.gz
vim etc/profile
增加以下代码:
export GOROOT=/usr/local/golang/go
PATH=$PATH:$GOROOT/bin
source /etc/profile
测试:
go version
1.wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -zxvf go1.6.2.linux-amd64.tar.gz
vim etc/profile
增加以下代码:
export GOROOT=/usr/local/golang/go
PATH=$PATH:$GOROOT/bin
source /etc/profile
测试:
go version