Git错误:请求的URL在访问http://时返回错误:504网关超时 [英] Git Error: The requested URL returned error: 504 Gateway Timeout while accessing http://
问题描述
我使用的是由我公司的内部云(KVM)配置的虚拟机 - RHEL 6.4。
我可以从互联网克隆外部存储库。然而,我无法弄清楚如何在我公司的内部网上克隆内部存储库。
起初,我没有设置 http_proxy
或 https_proxy
并收到此错误:
错误:The请求的URL返回错误:401访问http:// ....时需要的授权
设置 http_proxy
和 https_proxy
,我现在在等待大约60秒后收到此错误:
错误:请求的URL返回错误:504访问http:// ...
$ p $时的网关超时p>
我可以从我的笔记本电脑中克隆这个回购找到的东西,而不仅仅是VM
想法在哪里我应该看?
谢谢。
解决方案这在.gitconfig文件中,那么这个问题将得到解决。
- [http]
proxy = http://127.0 .0.1:8087
sslVe rify = false
或
git config --global http。代理''
I am using a VM provisioned by my company's internal cloud (KVM) - RHEL 6.4.
I am able to clone external repositories from the internet. Yet, I cannot figure out how to clone internal repositories on my company's intranet.
At first I didn't set the
http_proxy
orhttps_proxy
and received this error:error: The requested URL returned error: 401 Authorization Required while accessing http://....
After setting
http_proxy
andhttps_proxy
, I now receive this error after waiting about 60 seconds:error: The requested URL returned error: 504 Gateway Timeout while accessing http://...
I can clone this repo find from my laptop, just not the VM
Any ideas on where I should look?
Thanks.
解决方案use this in .gitconfig file then this problem will resolved.
- [http] proxy = http://127.0.0.1:8087 sslVerify = false
OR
git config --global http.proxy ''
这篇关于Git错误:请求的URL在访问http://时返回错误:504网关超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!