所以我已经使用NGIX与docker和许多应用程序django与UWSGI服务器Linux。
所以我需要创build一个在Docker容器内执行的工作。 这个工作将做一个应用程序Django的一些url的请求。
但是,当我试图提出请求时,我没有收到任何回应。
命令
wget localhost:3031 --bind-address=127.0.0.1
响应:
--2015-09-23 14:20:15-- http://localhost:3031/ Resolving localhost (localhost)... ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:3031... failed: Invalid argument. Connecting to localhost (localhost)|127.0.0.1|:3031... connected. HTTP request sent, awaiting response... No data received. Retrying. --2015-09-23 14:20:16-- (try: 2) http://localhost:3031/ Connecting to localhost (localhost)|127.0.0.1|:3031... connected. HTTP request sent, awaiting response... No data received. Retrying. --2015-09-23 14:20:18-- (try: 3) http://localhost:3031/ Connecting to localhost (localhost)|127.0.0.1|:3031... connected. HTTP request sent, awaiting response... No data received. Retrying.
用netstat
我执行了一个命令来检查应用程序是否列出了端口。
root@6c9e1bcb238d:/# netstat -tulpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3031 0.0.0.0:* LISTEN -
那么为什么我没有收到任何回应?