Python django fastcgi can';跑不动

Python django fastcgi can';跑不动,python,django,timeout,fastcgi,Python,Django,Timeout,Fastcgi,我使用fastcgi运行django应用程序。我用来运行它的命令如下: python manage.py runfcgi method=threaded host=127.0.0.1 port=3035 如果我输入ps-ef | grep python我也可以看到线程,但是当我使用lynx localhost:3035打开它时,我会得到504网关超时 因此,现在我使用 python manage.py runserver 3035 它运行正常。我不知道原因。在过去,我使用django 1.2

我使用fastcgi运行django应用程序。我用来运行它的命令如下:

python manage.py runfcgi method=threaded host=127.0.0.1 port=3035
如果我输入
ps-ef | grep python
我也可以看到线程,但是当我使用
lynx localhost:3035
打开它时,我会得到504网关超时

因此,现在我使用

python manage.py runserver 3035
它运行正常。我不知道原因。在过去,我使用django 1.2,它还可以

我的服务器信息:

debian5.0、django1.3、python2.6


FastCGI协议不同于HTTP协议。您需要在lynx和devserver之间添加一些同时使用HTTP和FastCGI协议的层。例如,配置了nginx w/FastCGI模块。

如果使用nginx部署,更好的选择是gunicorn或uwsgi(nginx本机支持)

古尼康:

uwsgi