LoginSignup
109
97

More than 5 years have passed since last update.

Windowsで、特定のポート番号でLISTENINGしているプロセスを強制終了させる方法

Posted at

eclipse を強制終了させたら、 eclipse から立ち上げていたサーバーのプロセスが生きてて困った時のメモ。

ポート指定で LISTENING 中の PID を取得する

> netstat -aon | find "<探したいポート番号>"
> netstat -aon | find "8080"
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       5664
  TCP    [::]:8080              [::]:0                 LISTENING       5664

一番右に表示されているのが、 PID 。

タスクを kill する

> taskkill /pid <kill したい PID>
> taskkill /pid  5664
成功: PID 5664 のプロセスに強制終了のシグナルを送信しました。

参考

109
97
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
109
97