标签:
wget -c http://golangtc.com/static/go/go1.4.1.linux-amd64.tar.gz (断点续传下载)
tar zxvf go1.4.1.linux-amd64.tar.gz -C /your/path
设置环境变量
mkdir /your/path/gopath
vi /etc/profile
export GOROOT=/your/path/go
export GOPATH=/your/path/gopath
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
source /etc/profile (运行命令使变量生效)
go version(查看)
标签:
原文地址:http://www.cnblogs.com/benlightning/p/4486975.html