解決Failed to connect to 127.0.0.1 port 10809 after 2163 ms: Connection refused的問題
问题:push代码的时候连接失败:Failed to connect to 127.0.0.1 port 10809 after 2163 ms: Connection refused出现这个问题的原因是之前设置过代理,然后就有些地方被乱套了。解决方案一:在这个路径下C:\Users\Administrator.gradle的 gradle.properties注释掉代码的相关代码#Thu May
·
问题:
push代码的时候连接失败:
Failed to connect to 127.0.0.1 port 10809 after 2163 ms: Connection refused
出现这个问题的原因是之前设置过代理,然后就有些地方被乱套了。
解决方案一:
在这个路径下C:\Users\Administrator.gradle的 gradle.properties注释掉代码的相关代码
#Thu May 05 18:05:10 GMT+08:00 2022
#systemProp.http.proxyHost=127.0.0.1
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=1087
#systemProp.http.proxyPort=1087
在使用gitLab的push的时候,问题验证得以解决!
(但是在使用码云的时候,问题复现,上面方案解决无果。)
解决方案二:
在这个路径下C:\Users\Administrator的.gitconfig,去掉proxy的相关设置
[https]
proxy = https://127.0.0.1:10809
[http]
proxy = http://127.0.0.1:10809
问题再次得以解决。
查看git是否设置了代码
git config --global http.proxy
取消代理 :
git config --global --unset http.proxy
另外可以排查一下系统环境变量有没有也设置了代码。
更多推荐
已为社区贡献2条内容
所有评论(0)