也在这里发布:https://stackoverflow.com/questions/8839295/long-polling-options-nginx-php-node-js
我正在设计一个长轮询应用程序,可以非常迅速地向大量用户广播小的变化。该应用程序将与运行一个相当标准的cms的网站同步运行。它们都将运行在一台服务器上,首先数据库也将运行。
我非常来自于LAMP环境,我肯定是一个开发人员,而不是sys。也就是说我不怕尝试一些新的东西。
我花了一天的时间研究我的选择,我希望人们能回答一些问题,并给我一些建议。
我把范围缩小到以下几个方面:
A. Apache and php for th
我想知道是什么困扰着我的博士级Django,Postgres,Gunicorn,Nginx项目。
`/etc/nginx/html/index.html" is not found`
nginx | 2021/10/27 15:40:34 [error] 22#22: *2 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 172.29.0.1, server: , request: "GET / HTTP/1.1", hos
解出
请参阅底部以获得修复等。
我试图通过uwsgi将我的django应用程序与nginx连接起来,但似乎没有将数据传递给uwsgi。我已经测试了uwsgi服务器是否运行正常,并且没有在任何一端获得任何日志输出。
uwsgi.ini
[uwsgi]
module = MyDjangoApp.wsgi:application
master = True
;http-socket = :8001 #to run uwsgi on its one to ensure that it works
socket = :8001
vacuum = True
max-requests
我们热衷于在基于django的应用程序中使用nginx + uwsgi,因为我们希望尝试新的解决方案,并且听说nginx比apache更少资源密集型。
在阅读了Django的创建者之一关于Quora上apache的一些视图之后:
http://www.quora.com/What-web-server-suits-Django-best
I'm still a big fan of a stripped down Apache+mod_wsgi running behind nginx.
Nginx handles static files, gzip, trickling t