结合使用Puma和Ruby on Rails:SIGUSR2,SIGUSR1,SIGHUP未实现

时间:2018-07-20 22:23:00

标签: ruby-on-rails ruby puma

这就是给我看的:

$ rails server
=> Booting Puma
=> 5.1.6 application starting in development`
=> Run 'rails server --h' for more startup options
***SIGUSR2 not implemented, signal based restart unavailable!
***SIGUSR1 not implemented, signal based restart unavailable!
***SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
*Version 3.12.0 <ruby 2.3.3-222>, codename: Llamas in Pajamas
*Min threads: 5, max threads: 5
*Environment: development
*Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop

在此之前,我没有启动Rails服务器的任何问题,并且正在继续迁移数据库。我不确定发生了什么,我很新。预先谢谢您。类似问题的答案对我不起作用或我不理解。

1 个答案:

答案 0 :(得分:0)

只需说明我遇到同样的问题。
在Windows 8.1上运行。这些命令中的每一个都获得相同的错误消息:
bundler exec rails server
bundle exec rails server
rails server

错误消息:

  

=>正在启动Puma
  => Rails 5.1.6应用程序开始开发
  =>运行rails server -h获取更多启动选项
   *未实现SIGUSR2,基于信号的重启不可用!
  *
未实现SIGUSR1,基于信号的重启不可用!
  ***未执行SIGHUP,无法重新打开基于信号的日志!
  Puma以单模式启动...
  *版本3.12.0(红宝石2.3.3-p222),代号:睡衣中的骆驼
  *最小线程数:5,最大线程数:5
  *环境:发展
  *收听tcp://0.0.0.0:3000

     

C:/RailsInstaller/Ruby2.3.​​3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:272:在initialize': Only one usage of each socket address (protocol/network address/port) is normally permitted. -
bind(2) for "0.0.0.0" port 3000 (Errno::EADDRINUSE) from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:272:in
from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:272:in中add_tcp_listener from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:105:in解析中的块 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:88:in每个 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:88:in解析 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/runner.rb:151:in load_and_bind from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/single.rb:96:in运行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/launcher.rb:184:in运行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/rack/handler/puma.rb:70:in运行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/rack2.0.5/lib/rack/server.rb:297:in开始 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/commands/server/server_command.rb:44:in开始 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/commands/server/server_command.rb:135:in阻止执行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/commands/server/server_command.rb:130:in点击 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/commands/server/server_command.rb:130:in执行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor0.20.0/lib/thor/command.rb:27:in运行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor0.20.0/lib/thor/invocation.rb:126:in调用命令 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/thor0.20.0/lib/thor.rb:387:in调度 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/command/base.rb:63:in执行 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/command.rb:44:in调用 from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/railties5.1.6/lib/rails/commands.rb:16:in from bin/rails:4:in要求 from bin/rails:4:in`