ubuntu下安装go1.7.3

  1. curl -O https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
  2. tar -C /usr/local -zxvf go1.7.3.linux-amd64.tar.gz
  3. sudo tar -C /usr/local -zxvf go1.7.3.linux-amd64.tar.gz
  4. mkdir -p ~/go/src
  5. echo "export GOPATH=$HOME/go" >> ~/.bashrc
  6. echo "export PATH=GOPATH/bin:/usr/local/go/bin" >> ~/.bashrc
  7. source ~/.bashrc
  8. go version

你可能感兴趣的:(ubuntu下安装go1.7.3)