为什么在Windows上mod_wsgi不支持守护程序模式? [英] Why doesn't mod_wsgi support daemon mode on Windows?

查看:109
本文介绍了为什么在Windows上mod_wsgi不支持守护程序模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://code.google.com/p/modwsgi/上,可以阅读此声明

但是mod_wsgi的守护程序模式 仅在Apache 2.0或2.2上可用 在UNIX上运行,并且仅当 Apache运行时库基础 Apache已在支持下进行编译 进行穿线.

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下不支持守护程序模式的原因是什么?

What's the reason there's no support for daemon mode under Windows?

我在得到后发现了以上

Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration

来自Apache的

错误.这不是模块包含的问题,因为WSGIScriptAlias指令可以正常工作.我想我得到的错误是由于mod_wsgi的Wiki中描述的限制所致.

error from Apache. It's not a problem with module's inclusion as WSGIScriptAlias directive works ok. I guess the error I get is due the limitation described on the mod_wsgi's wiki.

推荐答案

Windows不提供UNIX样式的fork()系统调用,因此无法在子进程继承父进程内存映像的地方生成进程. Apache/mod_wsgi需要fork().

Windows doesn't provide UNIX style fork() system call and so process spawning where child process inherits parent process memory image isn't possible. Apache/mod_wsgi requires fork().

这篇关于为什么在Windows上mod_wsgi不支持守护程序模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆