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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[转发]解决 git push Failed to connect to 127.0.0.1 port 45463: 拒绝连接相关的知识,希望对你有一定的参考价值。

使用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: 拒绝连接的主要内容,如果未能解决你的问题,请参考以下文章

git push错误failed to push some refs to的解决方法

如何解决failed to push some refs to git

解决failed to push some refs to git

解决git push报错:failed to push some refs to ‘git@github.com:anightmonarch/JavaEasyGoing.git‘

解决git push报错:failed to push some refs to ‘git@github.com:anightmonarch/JavaEasyGoing.git‘

解决git push报错:failed to push some refs to ‘git@github.com:anightmonarch/JavaEasyGoing.git‘