-1

我在 WIndows 7 上使用 Apache2.2。我尝试通过在 httpd.conf 中添加以下行来将 mod_wsgi.so 加载到 Apache2.2:

LoadModule wsgi_module modules/mod_wsgi.so

在 httpd.conf 中,有一些行使用来自 mod_wsgi.so 的指令(可能取决于此,所以我不确定),例如以下行:

WSGISocketPrefix D:\tool\apache2.2\conf

这一行让我陷入了从 Apache2.2 日志中得到的以下错误:

[Thu Jul 25 21:44:25 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Jul 25 21:44:25 2013] [notice] Child 6436: Exit event signaled. Child process is ending.
[Thu Jul 25 21:44:25 2013] [warn] module wsgi_module is already loaded, skipping
Syntax error on line 20 of D:/work/tool/apache2.2/conf/graphite.conf:
Invalid command 'WSGISocketPrefix', perhaps misspelled or defined by a module not included in the
server configuration
[Thu Jul 25 21:44:25 2013] [warn] (OS 995)The I/O operation has been aborted because of either a 
thread exit or an application request.  : winnt_accept: Asynchronous AcceptEx failed.
[Thu Jul 25 21:44:26 2013] [notice] Child 6436: Released the start mutex
[Thu Jul 25 21:44:27 2013] [notice] Child 6436: All worker threads have exited.
[Thu Jul 25 21:44:27 2013] [notice] Child 6436: Child process is exiting

请帮我!!

4

1 回答 1

1

WSGISocketPrefix 不在 Windows 上使用,您不应该设置它。它仅与仅在 UNIX 系统上支持的 mod_wsgi 守护程序模式有关。

于 2013-07-25T20:54:11.487 回答