LoginSignup
0
0

More than 3 years have passed since last update.

ポート番号指定で、Railsサーバーを停止したい

Last updated at Posted at 2020-08-13

デタッチモードでサーバーを起動する($rails s -d)と便利なのだが、
よく停止するのを忘れてどのプロジェクトファイルがそのポート番号を使っているのかわからなくなり、tmp/pids/server.rbのファイルを消去して停止するという方法がとれない時がある。

そういう時は、

$ Sudo kill -9 $(lsof -i :任意のポート番号 -t)

で消す事ができる。

参考記事①参考記事②

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