Nginx背后的独角兽vs乘客独立 [英] Unicorn vs Passenger Standalone behind nginx

查看:80
本文介绍了Nginx背后的独角兽vs乘客独立的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在独角兽和Phusion乘客独立版(以前称为Phusion乘客精简版)之间做出选择.我想在服务器上托管多个应用程序.我正在运行nginx并正在监听端口80.我需要一个Webapp服务器,可以根据请求服务器名称和/或缺少现有静态目录/文件将请求代理到该服务器.我对将Passenger编译为nginx(标准安装)的一部分不感兴趣,因为我的模型允许更大的灵活性(例如使用不同的应用程序运行不同版本的Ruby).

I'm trying to decide between Unicorn and Phusion Passenger Standalone (formerly Phusion Passenger Lite). I want to host multiple apps on my server. I have nginx running and listening to port 80. I need a webapp server that I can proxy requests to based on a request servername and/or the lack of an existing static directory/file. I am not interested in compiling Passenger as part of nginx (the standard install) because my model allows for more flexibility (like running different versions of Ruby with different apps).

我已经阅读了很多有关Unicorn的文章,它非常适合我的模型,但是我看到Standalone Standalone基本上可以做同样的事情.即使有大量用于标准乘客"安装的文档,但对于乘客独立"而言似乎没有很多.甚至官方文档也没用.

I have read a lot about Unicorn and it fits my model well but I see Passenger Standalone can essentially do the same thing. Even though there are tons of docs out there for standard Passenger installs, there don't seem to many for Passenger Standalone. Even the official docs are bare.

有人可以比较和对比这两个Ruby webapp服务器,并告诉我每个服务器的优缺点.请记住,它们只会用于快速客户".

Can someone please compare and contrast these two Ruby webapp servers and give me the pros and cons of each. Keep in mind they will only be used for "fast clients."

谢谢.

推荐答案

如果已经设置了nginx,请使用Unicorn.如果没有,请使用其自己的内置nginx附带的Standalone Standalone.也许这也会影响您使用文档的方式.分开记录本质上是捆绑在一起的两个非常有据可查的产品没有什么意义.

If you already have nginx set up, use Unicorn. If not, use Passenger Standalone, which comes with its own builtin nginx. Perhaps this also shapes your approach to the docs. There's not much point to separately documenting what is essentially two very well documented products, bundled together.

您将听到有关两者的好消息.如果您很着急,选择一个然后走.否则,请尝试两者并根据自己的经验来决定.

You'll hear good things about both. If you're in a rush, pick one and go. Otherwise, try both and decide based on your own experience of them.

这篇关于Nginx背后的独角兽vs乘客独立的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆