按照官方網站步驟:
1, git config --global http.sslVerify false
2, go get github.com/astaxie/beegogit
依然存在錯誤以下:
package golang.org/x/crypto/acme/autocert: unrecognized import path "golang.org/x/crypto/acme/autocert" (https fetch: Get https://golang
.org/x/crypto/acme/autocert?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection failed because connected host has failed to respond.)github
分析緣由: 依賴庫下載失敗 golang
解決方法:
1, 在GOPATH目錄下建立文件夾crypto
mkdir -p $GOPATH/src/golang.org/x
2, 進入文件夾
cd $GOPATH/src/golang.org/x
3, 下載crypto
git config --global http.postBuffer 524288000(若庫很大, 設置下載容量)
git clone https://github.com/golang/crypto crypto
4, 安裝
go install cryptotcp
依賴庫安裝成功,從新下載beegoide
beego安裝速度提升的方法:
在host文件中加入,
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
從新啓動電腦post