【GitHub】Failed to connect to 127.0.0.1 port 61422: Connection refused

  • Post author:
  • Post category:其他




具体报错

git clone https://github.com/xxx/xxx.git
Cloning into 'xxx'...
fatal: unable to access 'https://github.com/xxx/xxx.git/': Failed to connect to 127.0.0.1 port 61422: Connection refused



问题

原因是127.0.0.1 port 61422 被当作代理占用了.



解决办法

查询是否使用代理:

git config --global http.proxy


取消代理:

git config --global --unset http.proxy

截图如下:

在这里插入图片描述



版权声明:本文为weixin_44948467原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。