GO语言之linux下环境搭建(第六天)

linux 下环境搭建相当简单方便,只要解压缩GO 的压缩包即可
tar xvf go1.10.3.linux-amd64.tar.gz
GOROOT就是go的安装路径,在~/.bash_profile或者/etc/profile中添加

export GOROOT=/home/liusenlin/go
export PATH=$PATH:$GOROOT/bin

之后执行source /etc/profile
或者放在~/.bash_profile
在这里插入图片描述在这里插入图片描述在这里插入图片描述

发布了205 篇原创文章 · 获赞 47 · 访问量 26万+

猜你喜欢

转载自blog.csdn.net/qq_32744005/article/details/104909767