gpt4 book ai didi

linux - curl : connection refused

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:12:39 26 4
gpt4 key购买 nike

运行 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com