1.添加GO环境变量 export GOROOT=/usr/local/install/go export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin 2.go下载目录 https://studygolang.com/dl