16
17

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.

ポートで開いているプロセスを削除する方法(Windows, Mac)

Posted at

Windows

プロセス確認

$ netstat -aon | find "8080"
  TCP         0.0.0.0:8080           0.0.0.0:0              LISTENING       12312
  TCP         [::]:8080              [::]:0                 LISTENING       12312

プロセス削除

$ taskkill /pid 12312

削除できない場合、fオプションで強制終了する

$ taskkill /f /pid 12312

Mac

プロセス確認

$ lsof -i -P | grep 8080
java      20821 user1   84u  IPv6 0xd5d16e5b8eb30f87      0t0  TCP *:8080 (LISTEN)

プロセス削除

$ kill -9 20821
16
17
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
16
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?