about 1 year ago

rails server 出错

测试段落

> rails server

=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run rails server -h for more startup options
Puma starting in single mode...

  • Version 3.7.1 (ruby 2.3.1-p112), codename: Snowy Sagebrush
  • Min threads: 5, max threads: 5
  • Environment: development
  • Listening on tcp://localhost:3000 Exiting /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:269:in initialize': Address already in use - bind(2) for "::1" port 3000 (Errno::EADDRINUSE) from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:269:innew' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:269:in add_tcp_listener' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:263:inblock in add_tcp_listener' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:262:in each' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:262:inadd_tcp_listener' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:105:in block in parse' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:88:ineach' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/binder.rb:88:in parse' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/runner.rb:144:inload_and_bind' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/single.rb:87:in run' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/puma/launcher.rb:171:inrun' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/puma-3.7.1/lib/rack/handler/puma.rb:58:in run' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/rack-2.0.1/lib/rack/server.rb:296:instart' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/commands/server.rb:79:in start' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:90:inblock in server' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in tap' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:inserver' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in run_command!' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/railties-5.0.1/lib/rails/commands.rb:18:in' from /Users/chengjun/railsbridge/suggestotron/bin/rails:9:in require' from /Users/chengjun/railsbridge/suggestotron/bin/rails:9:in' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in load' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/lib/spring/client/rails.rb:28:incall' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/lib/spring/client/command.rb:7:in call' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/lib/spring/client.rb:30:inrun' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/bin/spring:49:in <top (required)>' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/lib/spring/binstub.rb:31:inload' from /Users/chengjun/.rvm/gems/ruby-2.3.1/gems/spring-2.0.1/lib/spring/binstub.rb:31:in <top (required)>' from /Users/chengjun/railsbridge/suggestotron/bin/spring:15:inrequire' from /Users/chengjun/railsbridge/suggestotron/bin/spring:15:in <top (required)>' from bin/rails:3:inload' from bin/rails:3:in `
    ' localhost:suggestotron chengjun$
← Hello World 上传heroku出错 →