ubuntu – unicorn nginx上游服务器不启动

前端之家收集整理的这篇文章主要介绍了ubuntu – unicorn nginx上游服务器不启动前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的独角兽服务器运行正常,但已停止工作,我无法确定如何重新启动它.
2011/04/18 15:23:42 [error] 11907#0: *4 connect() to unix:/tmp/sockets/unicorn.sock Failed (111: Connection refused) while connecting to upstream,client: 71.131.237.122,server: localhost,request: "GET / HTTP/1.1",upstream: "http://unix:/tmp/sockets/unicorn.sock:/",host: "tacitus"

我的配置文件是:https://gist.github.com/926006

任何关于我的故障排除选项应该是什么帮助将不胜感激.

最好,

蒂姆

我有与Nginx和独角兽设置相似的问题.

每天我在Nginx中看到error.log这个错误

Failed (11: Resource temporarily unavailable) while connecting to upstream

我修复它的方式是将unix套接字更改为tcp套接字.

所以反而

upstream unicorn_app {
  server unix:/tmp/sockets/unicorn.sock fail_timeout=0;
}

现在我正在使用

upstream unicorn_app {
  server 127.0.0.1:3000 fail_timeout=0;
}

希望会帮助某人.

原文链接:https://www.f2er.com/ubuntu/348565.html

猜你在找的Ubuntu相关文章