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 1 year has passed since last update.

塞がっているportを解放する

Posted at

firebaseのエミュレーターを使っているのですが、エラーでエミュレーターが落ちた時にportが塞がりっぱなしで再度立ち上げることができない事象が頻繁に起きました。

毎回portを変えても解決しますが、めんどくさいのでportを解放しましょう。

解決法

$ lsof -i:8000 -P
// java   5558  User   41u  IPv6 0x100000000000     0t0  TCP localhost:8000 

この5558プロセスをkillすればOK

ちなみに
lsofは現在開いているファイルを一覧表示するコマンドです
-iオプションはportを指定
-Pオプションはport番号を表示

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?