문제

그래서 Django 프로젝트가 모두 설정되고 준비가되어 있으며,이 명령을 통해 UWSGI를 사용하여 시작하려고 시도했습니다

# uwsgi --http :5000 --module myProject.wsgi
.

이 오류 로그

를 반환합니다.
** Starting uWSGI 2.0.3 (32bit) on [Sun Apr 13 14:23:55 2014] ***
compiled with version: 4.6.3 on 13 April 2014 14:06:52
os: Linux-2.6.32-042stab078.26 #1 SMP Wed Jun 19 11:05:34 MSK 2013
nodename: vps
machine: i686
clock source: unix
detected number of CPU cores: 1
current working directory: /root/HomeworkTasker
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 191584
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
bind(): Cannot assign requested address [core/socket.c line 759]
.

이 주소가 이미 사용되고 있다고 말한 것처럼 보이는 것처럼 보입니다. 이는 여러 가지 이유로이 사건이 아니라고 결정했습니다.이러한 이유 중 첫 번째 이유는 파이썬 쉘에 들어가면 Python으로 수동으로 0.0.0.0:5000을 바인딩 할 수 있습니다.다른 이유는 netstat 가면 포트 5000이 나열되지 않습니다.내가 여기서 할 수있는 모든 것 또는 나는 솔을 졸라?

도움이 되었습니까?

해결책

솔루션 발견 :

를 실행하여 인터페이스가 올바른지 확인하십시오.
ifconfig lo up
.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top