Golang安装文档
wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz
vim /etc/profile
# 最后一行增加
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/home/golang
#保存后执行
source /etc/profile
Golang安装文档
wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz
vim /etc/profile
# 最后一行增加
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/home/golang
#保存后执行
source /etc/profile