curl: Failed to connect to 127.**** port 1080: Connection refused on WSL2
Posted venusian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了curl: Failed to connect to 127.**** port 1080: Connection refused on WSL2相关的知识,希望对你有一定的参考价值。
在WSL2 Ubuntu18.04上执行指令
curl your_ip
发生了如下错误:
curl: (7) Failed to connect to 127.**** port 1080: Connection refused
在网上查了很多不靠谱答案,配置文件位置也不确定。
ping了一下地址发现可以ping通,
感觉这个应该是代理导致的,
于是在curl后面加上了不使用代理:
curl your_ip --noproxy "*"
成功
或者设置代理:
curl your_ip --proxy :1080
通了,不知道为啥,莫名其妙。反正不设置proxy就是不行。
以上是关于curl: Failed to connect to 127.**** port 1080: Connection refused on WSL2的主要内容,如果未能解决你的问题,请参考以下文章
curl: (7) Failed connect to localhost:9200; Connection refused
curl: (7) Failed connect to localhost:9200; Connection refused
curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused
我遇到的错误curl: Failed to connect to 127.0.0.1 port 1086: Connection refused
curl: Failed to connect to 127.**** port 1080: Connection refused on WSL2
cURL Error:Failed connect to *****.com:80; Connection timed out