简体   繁体   English

hg无法通过代理更新

[英]hg not able to update via proxy

i am trying to clone a repositiry which is sitting behind a proxy 我试图克隆一个坐在代理后面的repositiry

hg --config http_proxy.host=ipaddress:3128 pull "http://servername:8000"

abort: HTTP Error 503: Service Unavailable

on the proxy server(squid) i can see that it does connect 在代理服务器(squid)上我可以看到它确实连接

1315217673.018    102 ipaddress TCP_MISS/503 1601 GET http://servername:8000/? - DIRECT/- text/html

I started the hg server with these commands within the project directory: 我在项目目录中使用这些命令启动了hg服务器:

/usr/local/bin/hg serve

listening at http://servername:8000/ (bound to *:8000) http:// servername:8000 / (绑定到*:8000)监听

Any idea why mercurial fails??? 任何想法为什么mercurial失败???

fixed using 固定使用

hg clone ssh://user@servername//var/www/project projectname

Encountering a similar error message, I resolved it by simply restarting my Apache. 遇到类似的错误消息,我通过简单地重新启动我的Apache来解决它。 My mercurial is configured to start when I start my Apache service. 我的mercurial配置为在我启动Apache服务时启动。 Code: 码:

apache2ctl restart apache2ctl重启

我刚才有类似的错误,对我而言,我最终指向错误的代理服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM