标签:Golan install lin exp inux port col file echo
一、安装
[root@localhost golang]# yum install golang
安装默认目录为/usr/lib/golang/
二、配置环境变量
echo "export GOROOT=/usr/lib/golang/" >> /etc/profile
[root@localhost golang]# source /etc/profile
三、运行
[root@localhost golang]# go version go version go1.13.3 linux/amd64
标签:Golan install lin exp inux port col file echo
原文地址:https://www.cnblogs.com/sky-cheng/p/11988326.html