如何在Ubuntu(apache2或nginx)上安装Phusion Passenger 4? [英] How to install Phusion Passenger 4 on Ubuntu (on apache2 or nginx)?

查看:100
本文介绍了如何在Ubuntu(apache2或nginx)上安装Phusion Passenger 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我了解乘客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:

  • 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屋!

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