
그래서 저는 docker와 함께 NGIX를 사용하고 UWSGI와 함께 많은 응용 프로그램 django를 사용하여 Linux를 서버했습니다.
따라서 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 -
그런데 왜 아무런 응답을 받지 못했습니까?