卷曲:连接被拒绝 [英] Curl : connection refused
本文介绍了卷曲:连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行curl时出现以下错误:
I got the following error while running curl:
卷曲:(7)无法连接到127.0.0.1端口8080:连接 拒绝.
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused.
似乎很容易调试,但是,我没有找到解决方法.
文件etc/hosts
中提到了地址127.0.0.1.
It seems that it is easy to debug, but, I didnt find how to solve it.
The adress 127.0.0.1 is mentioned in the file etc/hosts
.
我在Ubuntu系统上使用的是curl版本7.47.
I am using curl version 7.47 on Ubuntu system.
有人知道吗?
谢谢.
推荐答案
确保您已启动服务并在端口上侦听.
Make sure you have a service started and listening on the port.
netstat -ln | grep 8080
和
sudo netstat -tulpn
这篇关于卷曲:连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文