Django runfcgi模式timeou

2024-10-02 00:44:38 发布

您现在位置:Python中文网/ 问答频道 /正文

manage runfcgi host=127.0.0.1 port=8002 maxrequests=200 maxchildren=100 minchildren=4

我是这样开始django fcgi的。在进程监视器中似乎没问题。但是当我打开http://127.0.0.1:8002时,它一直在运行,没有结果出来。在

^{pr2}$

这个方法很好。有人知道为什么吗?在


Tags: django方法httphostmanage进程port监视器
1条回答
网友
1楼 · 发布于 2024-10-02 00:44:38

Django docs on FastCGI中所述:

FastCGI is an efficient way of letting an external application serve pages to a Web server. The Web server delegates the incoming Web requests (via a socket) to FastCGI, which executes the code and passes the response back to the Web server, which, in turn, passes it back to the client’s Web browser.

您试图从浏览器直接连接到FCGI进程,但这行不通:您需要一个符合FCGI的web服务器来处理您的请求并将其委托给Django。在

请参阅Django docs以获得有关如何设置此项的详细说明。在

相关问题 更多 >

    热门问题