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