我有一個django應用程序,我在其中使用python Thread模塊來執行多線程,它通過manage.py使用django開發服務器時工作正常。 但是,當我部署在Apache - mod_wsgi,它不工作.join失敗,線程無法正常工作。任何人都可以幫助確切的Apache配置?python django wsgi multithread - 如何在django中使用多線程
我試着保留一些如下所示的多線程和多進程配置。但仍然沒有工作。 我的配置 - 聽8000
Alias /static/ /usr/td/static/
<Directory /usr/td/static/>
Require all granted
</Directory>
<Directory /usr/td>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess td display-name=myproject processes=10 threads=255 python-path=/usr/td/:/usr/lib/python2.7/site-packages
WSGIProcessGroup td
WSGIScriptAlias//usr/td/td/wsgi.py
感謝格雷厄姆的答案。我不需要在這裏保存wsgi-apache配置中的線程。我雖然保持這種配置將允許線程在python ..我只是想在後端運行線程。芹菜會在後端幫助我嗎?你能分享一些有例子的鏈接嗎?我已經去了芹菜文檔,但它看起來complect我..我使用線程模塊在後端做一些平行的工作。 – user8525895