LoginSignup
0
0

More than 3 years have passed since last update.

A server is already running. すでにサーバーが動いています。

Posted at

はじめに

Railsチュートリアル第2章を学習中にRails serverしたあと、誤ってターミナルを閉じてしまい、再度Rails serverをするとエラーがでたのでその解決方法を書いていきます。

エラー内容

=> Booting Puma
=> Rails 6.0.3 application starting in development 
=> Run `rails server --help` for more startup options
A server is already running. Check /home/ubuntu/environment/toy_app/tmp/pids/server.pid.
Exiting

【翻訳】
=> プーマを起動する
=> 開発中のRails6.0.3アプリの開発開始
=> rails server --help を実行すると、起動時のオプションが増えます。
すでにサーバーが動いています。/home/ubuntu/environment/toy_app/tmp/pids/server.pidを確認してください。
終了する

翻訳サイト: DeepL

エラー解決までの道のり

/home/ubuntu/environment/toy_app/tmp/pids/server.pidを確認してください。
とあるので、確認してみるとポート番号が書いてあったので、強制終了します。

kill -9 [ポート番号]

rails serverで再起動をして、無事解決できました!

参考にした記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0