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