重慶分公司,新征程啟航
為企業提供網站建設、域名注冊、服務器等服務
為企業提供網站建設、域名注冊、服務器等服務
按照官方網站步驟:
1, git config --global http.sslVerify false
2, go get github.com/astaxie/beego
依然存在錯誤如下:
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.)
分析原因: 依賴庫下載失敗
解決方法:
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 crypto
依賴庫安裝成功,重新下載beego
beego安裝速度提高的方法:
在host文件中加入,
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
重新啟動電腦
另外有需要云服務器可以了解下創新互聯scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。