前言
在windows10的Ubuntu18.04
安装go1.14.4
步骤
代码语言:javascript复制#!/bin/bash
wget https://studygolang.com/dl/golang/go1.14.4.linux-amd64.tar.gz
tar -zxvf go1.14.4.linux-amd64.tar.gz -C /usr/local/
cat>>/etc/profile<<EOF
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
EOF
source /etc/profile
go version