码迷,mamicode.com
首页 > 其他好文 > 详细

[转发]解决 git push Failed to connect to 127.0.0.1 port 45463: 拒绝连接

时间:2017-12-19 12:31:43      阅读:842      评论:0      收藏:0      [点我收藏+]

标签:port   解决方法   解决   hub   pull   local   env   127.0.0.1   size   

使用Github pull 代码突然报错:

Failed to connect to 127.0.0.1 port 43421: Connection refused

 

使用 lsof 发现端口未被占用:lsof -i:45463

 

查看代理:env|grep -i proxy

NO_PROXY=localhost,127.0.0.0/8,::1

http_proxy=http://127.0.0.1:45463/

HTTPS_PROXY=http://127.0.0.1:45463/

https_proxy=http://127.0.0.1:45463/

no_proxy=localhost,127.0.0.0/8,::1

HTTP_PROXY=http://127.0.0.1:45463/

 

原因:使用代理导致访问失败

 

解决方法:(取消代理使用)
   export http_proxy=""

 export https_proxy=""
 export HTTP_PROXY=""
 export HTTPS_PROXY=""



原文:http://www.cnblogs.com/LoTGu/p/7782661.html

[转发]解决 git push Failed to connect to 127.0.0.1 port 45463: 拒绝连接

标签:port   解决方法   解决   hub   pull   local   env   127.0.0.1   size   

原文地址:http://www.cnblogs.com/wangbb13/p/8064351.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
分享档案
周排行
mamicode.com排行更多图片
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!