git - 无法连接到 GitHub - 下载 Go 函数时出现问题 - 连接超时

标签 git go github hyperledger-fabric hyperledger

我在运行用于克隆的 Go 命令时遇到问题

go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim

# cd .; git clone https://github.com/hyperledger/fabric /home/ubuntu/go/src/github.com/hyperledger/fabric
Cloning into '/home/ubuntu/go/src/github.com/hyperledger/fabric'...
fatal: unable to access 'https://github.com/hyperledger/fabric/': Failed to connect to github.com port 443: Connection timed out
package github.com/hyperledger/fabric/core/chaincode/shim: exit status 128

我使用的是 AWS 虚拟机,我已经检查了所有入站流量。我在该网站的其他问题上搜索了相同的问题,但没有帮助。请大家帮忙解决这个问题。

最佳答案

我能够通过更新入站和出站详细信息并为所有 SSH、TCP 等选择 IP 地址作为“来自任何地方”来解决此问题

关于git - 无法连接到 GitHub - 下载 Go 函数时出现问题 - 连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51376830/

相关文章:

git - 限制 Git 扩展中的用户模拟

go - 如何调用实现接口(interface)的结构的特定方法

GitVersion 配置不递增

git - 可以配置 Composer 使用 http 而不是 git clone git@

loops - Golang代码重复一段html代码n次

github - 这些天github中repos的ssh URL在哪里?

git - 如何验证和显示 git 提交消息的错误?

git - 改变git结构

git - 如何对 .git/config 文件进行版本控制?

go - 将时间字段编码为 Unix 时间