【问题标题】:apache2 and passenger for railsapache2和铁路乘客
【发布时间】:2011-11-05 17:04:17
【问题描述】:

我安装了乘客,然后安装了 apache2。一切都很好,但是当我想在 80 端口开始乘客时,它说:

*** ERROR ***
The address 0.0.0.0:80 is already in use by another process, perhaps another
Phusion Passenger Standalone instance.

If you want to run this Phusion Passenger Standalone instance on another port,
use the -p option, like this:

  passenger start -p 81

并且在 80 端口上工作 apache2。所以他们不能一起工作。如果我想在 80 端口启动乘客,我必须禁用 apache2。这是对的吗?或者我应该如何更改设置? 现在我已经完成了: /etc/apache2/mods-available/passenger.conf:

PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.14                                                 
PassengerRuby /usr/bin/ruby1.8

/etc/apache2/mods-available/passenger.load:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so

没有别的。谢谢你的回答

【问题讨论】:

  • 正确,一次只能有一个进程监听一个端口。

标签: ruby-on-rails apache2 passenger


【解决方案1】:

我可能在这里没有完全正确的术语,但Passenger 是一个在Apache2 中运行的模块。您不会独立启动它们。您只需启动 Apache2,然后它会加载乘客。

【讨论】:

  • 谢谢..我明白了..我应该如何配置我的 apache2?我浏览了大约 20 个网站,但都不清楚..
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-09-13
  • 1970-01-01
  • 2010-12-26
  • 1970-01-01
相关资源
最近更新 更多