2
3

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.

プロセスを終了する方法

Posted at

Windows10

使用しているportを調べる

netstat -aon | find "8080"

  TCP         0.0.0.0:8080           0.0.0.0:0              LISTENING       15496
  TCP         [::]:8080              [::]:0                 LISTENING       15496
  TCP         [::1]:8080             [::1]:51985            TIME_WAIT       0
  TCP         [::1]:8080             [::1]:52205            ESTABLISHED     15496
  TCP         [::1]:52198            [::1]:8080             TIME_WAIT       0
  TCP         [::1]:52205            [::1]:8080             ESTABLISHED     8796
  TCP         [::1]:52206            [::1]:8080             TIME_WAIT       0
  TCP         [::1]:52223            [::1]:8080             TIME_WAIT       0

プロセスを終了させる

taskkill /pid 15496 /F

結果

成功: PID 15496 のプロセスは強制終了されました。

Linux(Centos)

lsof -i :8080

COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    21746 root  130u  IPv4 320607      0t0  TCP *:webcache (LISTEN)

プロセス終了

kill 21746

2
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?