2017-05-03 60 views
0

我已經爲rails項目安裝了slanger(和redis)。每個rails實例都關閉。Slanger:Eventmachine port exception

我運行redis-server,它工作正常。但後來我跑:

slanger --app_key MyPusherApiKey --secret MyPusherSecret

,並提出了下一個異常:

我的目錄/紅寶石/紅寶石-2.2.3/lib中/紅寶石/寶石/ 2.2.0 /寶石/eventmachine-1.0.9.1/lib/eventmachine.rb:534:in`start_tcp_server':無受體(端口在使用或需要root權限)(RuntimeError)

from my-directory/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:534:in `start_server' 
from my-directory/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/em-websocket-0.5.1/lib/em-websocket/websocket.rb:46:in `run' 
from my-directory/.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/em-websocket-0.5.1/lib/em-websocket/websocket.rb:39:in `block in start' 
from my-directory/.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:170:in `call' 
from my-directory/.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9.1/lib/eventmachine.rb:170:in `run' 

我認爲,如果端口有人在用,我可以改變這樣的:

slanger --app_key MyPusherApiKey --secret MyPusherSecret -a 0.0.0.0:3646

但我仍然得到同樣的錯誤。有任何想法嗎?

回答

0

最後我看到端口8080被Nginx使用。 停止nginx,我得到它工作正常。

的nginx -s停止