首页 > 代码库 > 我遇到的错误curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

我遇到的错误curl: (7) 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有一个配置文件:

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { }</style>

 ~/.curlrc

 

里面的内容是:

socks5 = "127.0.0.1:1086"

注释掉就好了。

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #33bbc8; background-color: #ffffff } span.s1 { color: #afad24 } span.s2 { }</style>

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