Does Gunicorn run on Windows

眉间皱痕 提交于 2019-11-28 19:33:22

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!