您好,登录后才能下订单哦!
按照官方网站步骤:
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
重新启动电脑
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。