Ubuntu服务器,运行go命令时,报错
go get github.com/beego/bee
报错信息如下:
# cd .; git clone -- https://github.com/beego/bee /usr/local/go/bin/src/github.com/beego/bee
Cloning into '/usr/local/go/bin/src/github.com/beego/bee'...
fatal: unable to access 'https://github.com/beego/bee/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
package github.com/beego/bee: exit status 128
解决方法:
输入以下两行命令即可:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
网友评论