我安装了乘客,然后安装了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
,没有别的。谢谢你的回答
答案 0 :(得分:1)
我可能没有完全正确的术语,但Passenger是在Apache2中运行的模块。你不是独立启动它们。你只需启动Apache2然后加载Passenger。