这就是给我看的:
$ 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服务器的任何问题,并且正在继续迁移数据库。我不确定发生了什么,我很新。预先谢谢您。类似问题的答案对我不起作用或我不理解。
答案 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:3000C:/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:infrom C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/puma3.12.0/lib/puma/binder.rb:272:in
中add_tcp_listenerfrom 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_bindfrom 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
`