如何在WSGI apache上为Django执行多个处理? [英] How do I do multiple processes for Django, on my WSGI apache?

查看:50
本文介绍了如何在WSGI apache上为Django执行多个处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友说Django只有1个线程之类的东西?

My friend says that Django only has 1 thread or something?

为了添加更多进程,我必须编辑我的000默认值吗?他建议4或5.

And I have to edit my 000-default in order to add more processes? He suggests 4 or 5.

这到底是什么,我该怎么办?

What exactly is this, and what do I have to do?

谢谢,我是菜鸟.

推荐答案

使用 WSGIDaemonProcess 指令将应用程序置于守护程序模式,并指定守护程序进程和线程数.

Use the WSGIDaemonProcess directive to put the app in daemon mode and specify the number of daemon processes and threads.

这篇关于如何在WSGI apache上为Django执行多个处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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