LoginSignup
1
1

More than 3 years have passed since last update.

A server is already running. 対処方法

Posted at

前提条件

・ruby 2.6.6
・Rails 6.0.3.2
・macOS Catalina バージョン10.15.7

概要

ローカル環境でrails sを走らせようとしたが
"A server is already running"
というエラーが発生した。その対処法を記述する。

1.再起動をする

ターミナルを全て閉じ再起動する。
これで解決する場合もあるみたい。私はやったことはない。

2.tmp/pids/server.pid.を削除する

私はこの方法で毎回解決している。
ターミナルで"A server is already running"の後に
Check /Users/・・・・/tmp/pids/server.pid.
と出ている。
サーバーを落とす際にこのファイルが消されるはずなのだが、何らかの不具合で
消されていない状況が発生するようだ。
Finderからアクセスし、直接"server.pid."を削除
これで解決。

1
1
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
1
1