【发布时间】:2023-01-20 13:34:16
【问题描述】:
我正在尝试配置 mesibo 通信服务本地部署,并尝试使用 docker - FastCGI - NGINX 部署后端应用程序。我已关注以下 URL https://mesibo.com/documentation/on-premise/#hosting-mesibo-backend-apis 请参阅标题“托管 mesibo 后端 API”。我已经使用 11443 端口在 docker 中部署应用程序。
在检查命令 sudo netstat -ltnp 时得到以下输出。所以进程运行正常。
tcp 0 0 0.0.0.0:3306 0.0.0.0:* 听 267497/mysqld tcp 0 0 0.0.0.0:11443 0.0.0.0:* LISTEN 535097/后端
当我尝试运行命令时
curl http://0.0.0.0:11443 => 出现错误“curl: (56) Recv failure: Connection reset by peer”
请帮助我摆脱这个问题。
========= 发现问题 - 但它可能对某人有帮助
运行命令“ifconfig”以查找 docker ip 地址。然后使用该 ip 地址尝试 curl 命令。
【问题讨论】:
-
您应该使用 docker 的实际 IP 地址而不是 0.0.0.0
-
是的,我已经运行命令“ifconfig”并获得了 docker ip 地址。谢谢@mesibo
标签: linux docker nginx curl mesibo