Keine Antwort vom lokalen Server auf dem Computer erhalten

Keine Antwort vom lokalen Server auf dem Computer erhalten

Ich habe also einen Linux-Server mit NGIX mit Docker und viele Django-Anwendungen mit UWSGI.

Ich muss also einen Job erstellen, der in einem Docker-Container ausgeführt wird. Dieser Job sendet eine Anfrage an eine bestimmte URL der Django-Anwendung.

Als ich jedoch versuchte, die Anfrage zu stellen, erhielt ich keine Antwort.

Befehl

wget localhost:3031 --bind-address=127.0.0.1

Antwort:

--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

Ich habe einen Befehl ausgeführt, um zu überprüfen, ob die Anwendung die Ports auflistet.

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      -      

Warum habe ich also keine Antwort erhalten?

verwandte Informationen