0

私はしばらくこの問題を抱えていましたが、解決策が見つかりませんでした。Railsでフォーラムアプリケーションを構築しています。ブートストラップとブートストラップ gem を自分のプロジェクトに追加し終えたところです。サーバーを実行しようとすると、巨大なエラーで終了します。ここにあります。 Julies-MacBook-Air:railsnew juliechopourian$ rails server => Booting Puma => Rails 5.0.0.1 application starting in development on http://localhost:3000 => Runrails server -h for more startup options Puma starting in single mode... * Version 3.6.0 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 Exiting /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:266:ininitialize': アドレスは既に使用されています - bind(2) for "::1" port 3000 (Errno::EADDRINUSE) from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0new' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:266:inからの /2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:266:in add_tcp_listener' /gems/puma-3.6.0/lib/puma/binder.rb:260:in block in add_tcp_listener' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:259:ineach' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma -3.6.0/lib/puma/binder.rb:259:inadd_tcp_listener' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:102:in/Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:85:in each' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/binder.rb:85:inparse' からの解析中のブロック' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/runner.rb:133:in load_and_bind' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/single.rb:85:inrun' from /Users/ juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/puma/launcher.rb:172:in run' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.6.0/lib/rack/handler/puma.rb:51:inrun' from /Users/juliechopourian/.rbenv /versions/2.3.1/lib/ruby/gems/2.3.0/gems/rack-2.0.1/lib/rack/server.rb:296:in start' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:instart' from /Users/juliechopourian/.rbenv/versions/2.3 .1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:inblock in server' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in/Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in run_command からタップしてserver' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:inください! ' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in <top (required)>' from /Users/juliechopourian/treehouse/rails_app/railsnew/bin/rails:9:inrequire' from /Users/ juliechopourian/treehouse/rails_app/railsnew/bin/rails:9:in <top (required)>' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:inload' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/ lib/spring/client/rails.rb:28:in call' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/client/command.rb:7:incall' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/ spring/client.rb:30:in run' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/bin/spring:49:in' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb :11:インチload' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/juliechopourian/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/juliechopourian/treehouse/rails_app/railsnew/bin /spring:13:in <top (required)>' from bin/rails:3:inload' from bin/rails:3:in<main>' Julies-MacBook-Air:railsnew juliechopourian$

puma gem と何か関係があるのではないかと思いますが、よくわかりません。どんな助けでも大歓迎です。私のプロジェクトをこれ以上投稿する必要があるかどうか教えてください。

4

2 に答える 2

1

これを見てAddress already in use - bind(2) for "::1" port 3000 (Errno::EADDRINUSE)

何かがポート 3000 で既にリッスンしています。そのポートをリッスンしている他の ruby​​ プロセスがないことを確認してください。何かのようなもの

ps aux | grep ruby
于 2016-10-29T18:53:47.663 に答える