问题
I have looked around for a while, and I was surprised not finding any information whether Gunicorn runs on Windows or not. Does anyone know if that is the case, and if so, where can I find some documentation about it?
回答1:
Gunicorn is for a UNIX environment and is incompatible with Windows.
回答2:
Technically this is not an answer. But practically the answer I was looking for is how to run a WSGI web app (like Django) on Windows, and for those who got into this page because of that, here it is:
I'm using waitress now, very good alternative :)
Basically all you have to do is replace the gunicorn
call with:
waitress-serve --listen=*:8000 myapp.wsgi:application
For typical apps this will give you the same result as running gunicorn. :) Good luck!
回答3:
Edit: there's now a plan to add Windows support. https://github.com/benoitc/gunicorn/issues/524
No. Gunicorn doesn't run on Windows. It's very design is to take 'advantage of features in Unix/Unix-like kernels'.
回答4:
gunicorn used not to run directly on Windows, but work (and pending issues being resolved) mean that you can make it work on Cygwin.
See https://github.com/benoitc/gunicorn/issues/407 ....
(Note: I update this answer because the bug has now been fixed)
回答5:
Gunicorn does not support windows, although you can use waitress
来源:https://stackoverflow.com/questions/11087682/does-gunicorn-run-on-windows