系统环境
ubuntu18.04
安装配置
- 安装Go语言
sudo apt-get update
sudo apt-get -y upgrade
wget https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
sudo tar -xvf go1.7.linux-amd64.tar.gz
sudo mv go /usr/local
- 设置环境
vim /etc/profile
export GOROOT=/usr/local/go1.7
export PATH=$GOROOT/bin:$PATH
source /etc/profile
go version
相关配置
go env
标签:sudo,tar,GOROOT,go1.7,ubuntu,go,安装
From: https://www.cnblogs.com/xiao-xiaoyang/p/17370698.html