UWSGI: "Impossibile assegnare l'indirizzo richiesto"
Domanda
Quindi ho un progetto Django tutto impostato e pronto per andare, e poi ho tentato di avviarlo usando UWSGI tramite questo comando
# uwsgi --http :5000 --module myProject.wsgi
.
Quindi restituisce questo registro di errore
** 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]
.
Dopo alcuni googling sembra che sia stato detto che questo indirizzo è già in uso, ho determinato che questo non è il caso per molteplici ragioni.Il primo di questi motivi è che se vado in un guscio di Python, posso associare manualmente 0.0.0.0:5000 con Python.L'altra ragione è che se vado netstat, la porta 5000 non è elencata.Tutto ciò che posso fare qui o sono sol?
Soluzione
Soluzione trovata:
Assicurati che le interfacce siano corrette eseguendo
ifconfig lo up
. Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow