在ubuntu18.04下使用postman测试接口出现错误Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
![](https://img-blog.csdnimg.cn/img_convert/839b8d6a03334b3d19c1dec3c1da9286.png)
奇怪,怎么请求本地8888端口呢,仔细回想了一下,前段时间使用fiddler进行抓包。fiddler抓包原理就是设置代理,意识到fiddler给系统设置了代理,所以需要取消代理。ubuntu下关于代理处理如下。
1.查看代理
env | grep -i proxy
![](https://img-blog.csdnimg.cn/img_convert/0a9d67ebdaa0b0b2ffddb0e306a3e93a.png)
2取消代理
Settings->Network->Nework Proxy
![](https://img-blog.csdnimg.cn/img_convert/2e3eb049c32d4f8387a5b6856ab2b2b9.png)
![](https://img-blog.csdnimg.cn/img_convert/f8f0fc3f8c2c9ee94809f562b8d0baf2.png)
![](https://img-blog.csdnimg.cn/img_convert/2f5111826561e8e802b523ec2bca6fdb.png)
![](https://img-blog.csdnimg.cn/img_convert/3fad588b030b275e32543b9457621bf9.png)
在此测试OK
![](https://img-blog.csdnimg.cn/img_convert/b9d695ac3fc919a5fc2229074d9dcb35.png)