python - 为什么 mod_wsgi 在 Windows 上不支持守护进程模式?

标签 python windows apache mod-wsgi

关于 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/

相关文章:

database - 使用 Excel 作为 ODBC 数据库

c# - CanStop 设置为 False 时停止 Windows 服务的方法 (C#)

Apache 不会启动

python - Pandas 条形图没有显示我需要的东西

python - 使 Int64 成为默认的整数 dtype,而不是 pandas 中的标准 int64

python - python结构中的动态数组和结构

python - 为什么在Pool中使用了2个以上的进程就没有影响了?

c++ - 直接显示 ISampleGrabber : samples are upside-down and color channels reverse

php - 新的 Laravel 8 安装 500 服务器错误,没有 Laravel 日志或 Apache 日志

php - 通过php函数readfile下载大文件不起作用