tar命令解压时,需要-f指定名字

This commit is contained in:
Yixin Luo
2016-03-06 16:08:02 +08:00
parent a29620b446
commit 8b2144b86c
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
从 [官方页面](https://golang.org/dl/) 或 [国内镜像](http://www.golangtc.com/download) 下载 Go 的源码包到你的计算机上,然后将解压后的目录 `go` 通过命令移动到 `$GOROOT` 所指向的位置。
wget https://storage.googleapis.com/golang/go<VERSION>.src.tar.gz
tar zxv go<VERSION>.src.tar.gz
tar -zxvf go<VERSION>.src.tar.gz
sudo mv go $GOROOT
4. 构建 Go