Slanger:Eventmachine端口异常

时间:2017-05-03 19:21:38

标签: ruby-on-rails ruby pusher

我为rails项目安装了slanger(和redis)。每个rails实例都已关闭。

我运行redis-server并且它正常运行。但后来我跑了:

slanger --app_key MyPusherApiKey --secret MyPusherSecret

它引发了下一个例外:

  

my-directory / rubies / ruby​​-2.2.3 / lib / ruby​​ / gems / 2.2.0 / gems / eventmachine-1.0.9.1 / lib / eventmachine.rb:534:在`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 个答案:

没有答案