我的独角兽服务器运行正常,但已停止工作,我无法弄清楚如何重新启动它。
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
任何有关我的故障排除选项的帮助都将非常感谢。
最好的,
添
答案 0 :(得分:8)
我有与nginx和unicorn设置类似的问题。
我每天都在nginx中看到error.log这个错误:
failed (11: Resource temporarily unavailable) while connecting to upstream
我修复它的方法是将unix socket更改为tcp socket。
所以改为
upstream unicorn_app {
server unix:/tmp/sockets/unicorn.sock fail_timeout=0;
}
现在我正在使用
upstream unicorn_app {
server 127.0.0.1:3000 fail_timeout=0;
}
希望它会对某人有所帮助。