我遇到的错误curl: Failed to connect to 127.0.0.1 port 1086: Connection refused

Posted 初二八九

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我遇到的错误curl: Failed to connect to 127.0.0.1 port 1086: Connection refused相关的知识,希望对你有一定的参考价值。

今天我用curl命令,无论如何都是出现:

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

找了很久,不知道是什么问题,后来发现curl有一个配置文件:

 ~/.curlrc

 

里面的内容是:

socks5 = "127.0.0.1:1086"

注释掉就好了。

以上是关于我遇到的错误curl: Failed to connect to 127.0.0.1 port 1086: Connection refused的主要内容,如果未能解决你的问题,请参考以下文章