如何在Ubuntu(apache2或nginx)上安装Phusion Passenger 4? [英] How to install Phusion Passenger 4 on Ubuntu (on apache2 or nginx)?
问题描述
虽然我了解乘客5是当前的标准,但是我有一个独特的用例,要求我在升级当前应用程序时使用乘客4.我似乎找不到从旅客站点上如何安装旅客4的任何特定说明.我似乎也找不到与旅客4的任何合适的存储库.
While I understand that Passenger 5 is currently the standard, I have a unique use case requiring me to use Passenger 4 while I upgrade a current application. I can't seem to find any particular instructions on how to install Passenger 4 from the Passenger site. I also cannot seem to find any apt repositories with Passenger 4 either.
有没有可用的资源来执行此操作?可以通过apt完成吗?
Are there any resources available for doing this? And can this be done via apt?
推荐答案
在 Passenger Phusion仓库只能保存发行版的一个版本(现在可以发行版本5).因此,您需要在/etc/apt/sources.list.d/passenger.list(在Ubuntu上)中设置存储库位置,以使用在服务器上安装旅客时,您将会拉入乘客4回购而不是乘客5回购.
The Passenger Phusion repo can only hold one version of the distro (now it holds version 5). So, you need to set the repo location in the /etc/apt/sources.list.d/passenger.list (on Ubuntu) to use the specified string in the blog article. Once you do this when installing Passenger on the server you will pull in the Passenger 4 repo instead of the Passenger 5 repo.
以下几点也将有助于安装:
The following additional points will also help in the installation:
- 要使VirtualHost(通过Apache上的Passenger 4)通过RVM运行特定版本的ruby,请针对Gem:Module的未定义方法`source_index'(NoMethodError)" .如果是这样,请使用此更新您的gemset以解决此问题.
- To get the VirtualHost (via Passenger 4 on Apache) to run a specific version of ruby by way of RVM, this article was helpful to have.
- Next, if you have to use a ruby version earlier than 2.0, you may get a problem "undefined method `source_index' for Gem:Module (NoMethodError)". If so use this to update your gemset to resolve the issue.
这篇关于如何在Ubuntu(apache2或nginx)上安装Phusion Passenger 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!