2
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 5 years have passed since last update.

[Ruby on Rails] Rails serverがCtrl + C で停止できない時の停止方法

2
Last updated at Posted at 2020-12-21

はじめに

rails server のコマンドを打ったターミナルを閉じてしまった時など、 Ctrl + C でサーバーを停止することができなくなった時の対処法を解説していきます。

環境

macOS Catalina バージョン 10.15.7

手順

rails server のプロセス番号(PID)を調べる

$ lsof -i:3000

実行すると現在作動中の rails server のプロセス番号(PID)が表示されます。

kill コマンドの実行

表示されたプロセス番号(PID)を指定してkill コマンドを実行します。

$ kill -9 プロセス番号(PID)

これで停止されるでしょう。

2
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
2
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?