Django runfcgi 模式超时
manage runfcgi host=127.0.0.1 port=8002 maxrequests=200 maxchildren=100 minchildren=4
我就是这样启动django fcgi的。在进程监视器中似乎没问题。但是当我打开 http://127.0.0.1:8002 时,它继续运行,没有结果出来。
manage runserver 127.0.0.1:8002
这个方法很好。有谁知道为什么吗?
manage runfcgi host=127.0.0.1 port=8002 maxrequests=200 maxchildren=100 minchildren=4
I started django fcgi in this way. It seems all right in processes monitor. But when I open http://127.0.0.1:8002, it keep runing and no result come out.
manage runserver 127.0.0.1:8002
This method was fine. Does any one knows why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 FastCGI 上的 Django 文档 中所述:
您尝试从浏览器直接连接到 FCGI 进程,但这是行不通的:您需要一个符合 FCGI 的 Web 服务器来处理您的请求并将其委托给 Django。
有关如何设置的详细说明,请参阅 Django 文档 。
As explained in the Django docs on FastCGI:
You're trying to connect directly to the FCGI process from your browser, which won't work: you need an FCGI-compliant webserver to handle your request and delegate it to Django.
See the Django docs for a thorough explanation of how to set this up.