美文网首页
linux下go环境安装

linux下go环境安装

作者: henryspace | 来源:发表于2017-03-05 15:33 被阅读0次

go环境安装:

yum -y install gcc
yum -y install git
cd /usr/local
wget http://www.golangtc.com/static/go/1.6.3/go1.6.3.linux-386.tar.gz
tar -zxvf go1.6.3.linux-386.tar.gz 
vi /etc/profile

追加如下内容:

export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export GOPATH=/root/www/go
export PATH=$PATH:$GOBIN:$GOPATH

查看安装状态

source /etc/profile
go version
go env

go社区

http://www.golangtc.com/

相关文章

网友评论

      本文标题:linux下go环境安装

      本文链接:https://www.haomeiwen.com/subject/kbcegttx.html