2011-11-05 61 views
0

我已經安裝乘客,然後apache2。一切正常,但是當我要80端口上啓動客運它說:apache2和乘客的軌道

*** 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

正確的,一次只能有一個進程監聽端口。 – Eric

回答

1

我可能在這裏沒有完全正確的術語,但Passenger是一個運行在Apache2中的模塊。你不會獨立開始他們。您只需啓動Apache2,然後加載Passenger。

+0

謝謝..我明白了..我應該配置我的apache2?我瀏覽了大約20個網站,但沒有任何明確的信息。 – Aaxenon