linux golang的安装

yum -y install mercurial

yum -y install git

yum -y gcc


准备golang的包

1.4

http://vdisk.weibo.com/s/dWapX678kW3f?category_id=37&parents_ref=dWapX678rPV7


tar xf go1.4.linux-amd64.tar.gz


vim /etc/profile

export GOROOT=/usr/local/go

export PATH=$GOROOT/bin:$PATH

export GOPATH=/usr/local/go/pkg


source /etc/profile

验证

go version

你可能感兴趣的:(安装,golang)