linux - curl : connection refused

标签 linux ubuntu curl

运行 curl 时出现以下错误:

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

貌似调试起来很容易,但是,我没有找到解决方法。 地址 127.0.0.1 在文件 etc/hosts 中提到。

我在 Ubuntu 系统上使用 curl 版本 7.47。

有人对此有想法吗?

谢谢。

最佳答案

确保您已启动并监听端口的服务。

netstat -ln | grep 8080

sudo netstat -tulpn

关于linux - curl : connection refused,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41027340/

相关文章:

Python 套接字程序 - NameError : name 'self' is not defined. 我更改了本地主机、端口等,但此错误拒绝消失

php - Linux 使用 PHP (XAMPP) 执行文件

javascript - Linux 上的 Karma 启动器

sql-server - SQL Server 能否在 SCO SantaCruz Operations SO (Linux) 上运行?

ubuntu - 在 Ubuntu Lucid 上手动安装 groovy 的最佳实践是什么?

python - 使用 matplotlib plt.show() 看不到图

python - 当我使用 CURL 与使用 URLLIB2 时,为什么会得到不同的结果?

Symfony 不加载页面

php - 我们如何在 Guzzle 中指定 TLS/SSL 选项?

git - 即使 curl 适用于 https 页面,也无法克隆 https 存储库