【发布时间】:2011-09-07 22:46:27
【问题描述】:
我的服务器是这样配置的(这是全新安装的 ubuntu 10.10)
nginx + gunicorn + django + supervisord 运行它
当我尝试访问我的网站时,我收到 502 错误。这将显示在错误日志中:
2011/06/03 10:40:59 [error] 15066#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: [retracted], server: [retracted], request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:29000/", host: "[retracted]"
这是我的 nginx.conf http://pastebin.com/t0V2yFxr
这是我的 supervisord.conf http://pastebin.com/pqVqRLSk
还有我的 gunicorn.conf
bind = "127.0.0.1:29000"
logfile = "/sites/[retracted]/logs/gunicorn.log"
workers = 3
当我跑步时 sudo supervisordctl 状态
它什么也不返回。所以这让我怀疑它没有正常运行。但是,没有 supervisord.log 文件(在 /var/log/ 或 /code/[]/logs/ 中)或 gunicorn.log 显示错误。
所以我根本无法调试它。有关如何照顾这种羚牛的任何建议?
【问题讨论】:
标签: django nginx gunicorn supervisord