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.

自分で立ち上げたローカルサーバーのポート番号のターミナルでの確認方法

Last updated at Posted at 2018-03-30

よくいろんなポートで立ち上げたり被ったりするので忘れないように備忘録的なメモ。
終了しなくなる時の強制終了できるように終了コマンドも。

確認方法

lsof -i:<確認したいポート>

ex) localhost:8080のJobを確認したい時
lsof -i:8080

表示

COMMAND   PID      USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java    30062 USERNAME  117u  IPv6  ***********      0t0  TCP *:http-alt (LISTEN)

強制終了方法

kill -9 PID

ex)

kill -9 30062
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?