关于 http://code.google.com/p/modwsgi/可以阅读此声明
Daemon mode of mod_wsgi will however only be available on Apache 2.0 or 2.2 running on UNIX, and only when the Apache runtime library underlying Apache has been compiled with support for threading.
Windows下不支持daemon模式的原因是什么?
得到后发现了上面的
Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration
来自 Apache 的错误。这不是模块包含的问题,因为 WSGIScriptAlias
指令工作正常。我想我得到的错误是由于 mod_wsgi 的 wiki 上描述的限制造成的。
最佳答案
Windows 不提供 UNIX 风格的 fork() 系统调用,因此不可能在子进程继承父进程内存镜像的情况下生成进程。 Apache/mod_wsgi 需要 fork()。
关于python - 为什么 mod_wsgi 在 Windows 上不支持守护进程模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5364949/