Ubuntu安装go1.8

前端之家收集整理的这篇文章主要介绍了Ubuntu安装go1.8前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

step1

wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz

step2

sudo tar -xvf go1.8.3.linux-amd64.tar.gz
sudo mv go /usr/local

step3

vi ~/.bashrc
export GOROOT=/usr/local/go
export GOPATH=/home/zhangxiao/goworkspace/mygo
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
source ~/.bashrc

step4

go version 
#go version go1.8.3 linux/amd64

参考:
https://tecadmin.net/install-go-on-ubuntu/#

猜你在找的Ubuntu相关文章