解决curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused

curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

问题出现原因:

1.git删除不完全,参照的网上的rm,删除了git但是完全卸载不成功,执行rm请三思

2.之前有设置过*的童鞋

3.git地址更换

参考文献

https://blog.csdn.net/weixin_41010198/article/details/87929622

这个同学告诉我:

执行这个命令可以看到自己的代理设置:env|grep -I proxy解决curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused

是的你们的应该是

解决curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused

这样的一堆,我不想再改回来了,因为我在这个坑上站了2天,两天呀

解决curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused

依据他的思路,确实是可以改变代理设置,但是当你重启小黑窗,重启idea执行git的时候,又会抛出异常,什么异常?还是同一个异常 Failed to connect to 127.0.0.1 port 1086: Connection refused ,这会你就开始怀疑人生了

所以我当你从那几十篇文章连字都不改的copy也能发文章时,找到本文无疑是幸运的

mac系统 执行: sudo vim  .bash_profile

加入你所要修改的东西:比如我修改的

解决curl: (7) Failed to connect to 127.0.0.1 port 1087: Connection refused

然后执行source .bash_profile 使更新生效

这样就能完美解决,重复不生效的问题