rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install golang -y
https://www.jiloc.com/42528.html
https://blog.csdn.net/u012724150/article/details/53309522
3、环境变量:
在 /etc/profile 添加:
export GOPATH=/var/www/html
export PATH=$PATH:$GOPATH/bin