试图通过防火墙从github加载文件速度很慢。有关变通方法的任何建议? [英] Trying to load files from github through a firewall is impossibly slow. Any suggestions for workarounds?

查看:150
本文介绍了试图通过防火墙从github加载文件速度很慢。有关变通方法的任何建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点犹豫要发布这个,因为我不完全确定我在做什么。任何帮助都会很棒。



我在装有防火墙/过滤器的计算机上。我可以毫无困难地下载文件。当我尝试从Github克隆文件时,计算机只是挂起。什么都没发生。它会在文件夹中创建一个git文件,但不会加载关键文件。对于上下文,我正在开发一个Rails应用程序,尝试加载Restful Authentication。



有没有人处理过这个问题?任何建议让克隆工作?禁用防火墙可能是一种选择,但如果我可以在不通过该过程的情况下执行某些操作,我将非常感激。

解决方案

Github支持使用通过端口9418的git协议和通过端口80的HTTP进行克隆。使用后者非常缓慢(参考)。
您应该在防火墙上打开端口9418,否则使用HTTP克隆。


I'm a little hesitant to post this, as I'm not completely sure what I'm doing. Any help would be wonderful.

I'm on a computer with a firewall/filter on it. I can download files without any difficulty. When I try to clone files from Github, though, the computer just hangs. Nothing happens. It creates a git file in the folder, but the key files don't get loaded in. For context, I'm working on a Rails app, trying to load in Restful Authentication.

Have any of you dealt with this? Any suggestions for getting the clone to work? Disabling the firewall might be an option, but if I can do something without going through that process, I'd appreciate it.

解决方案

Github supports cloning using both the git protocol over port 9418 and HTTP over port 80. Using the later is very slow (Reference). You should open port 9418 on your firewall or use HTTP cloning otherwise.

这篇关于试图通过防火墙从github加载文件速度很慢。有关变通方法的任何建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆