簡體   English   中英

apache mod_wsgi僅在守護程序模式下崩潰

[英]apache mod_wsgi crashes only in daemon mode

我使用的是Apache Web服務器和mod_python作為界面,我正在從mod_python遷移到mod_wsgi。 我已經完成所有設置,並且一切正常。 現在,當我添加以下行(以啟用守護程序模式)時,該站點無法正常工作。

WSGIDaemonProcess test.tessite.com processes=5 threads=10 display-name=%{GROUP}

我從服務器收到500錯誤作為響應。 當我查看Apache的錯誤日志時,我發現,

[Mon Oct 22 12:31:07 2012] [error] [client 58.68.24.230] Premature end of script headers: ls.wsgi

這是我在conf中的WSGI設置,

#Set the number of process and threads for each process. process*thread number of requests can be handled at a time
WSGIDaemonProcess test.testsite.com processes=5 threads=10 display-name=%{GROUP}
#Sets which process group WSGI application is assigned to.
WSGIProcessGroup test.testsite.com
#Maps a URL to a filesystem location and designates the target as a WSGI script.
WSGIScriptAlias / /public/gdp/trunk/src/ukl/lis/process/ls.wsgi
<Directory /public/gdp/trunk/src/ukl/lis/process/>
    Order allow,deny
    Allow from all
</Directory>

為什么僅在守護程序模式下會發生這種情況? 如何解決此問題? 在非守護程序模式下運行是否安全?

查看https://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions ,最后一個問題“ Apache進程崩潰”部分。 仍在加載mod_python apache模塊嗎? 您是否正在使用具有C組件的任何第三方庫?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM