0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

サーバーが起動しない時の対処法

Posted at

A server is already running.が出てrails s が起動しない時

#lsof -i

COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
ruby2.5 2722 vagrant   15u  IPv4  23988      0t0  TCP ubuntu-bionic:3000->_gateway:52166 (CLOSE_WAIT)
ruby2.5 2722 vagrant   16u  IPv4  23985      0t0  TCP *:3000 (LISTEN)

この2722が邪魔。なので

#kill -9 2722

killed

これで動かせる。
アプリ/tmp/pids/server.pidのファイルを削除してもいけるらしい。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?