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 3 years have passed since last update.

8080ポートの切断 タスクをkillする方法【WindowsPowerShell】

Last updated at Posted at 2021-09-27

WindowsPowerShellを開く

プロセスIDを調べる

PS C:\Users\hoge> netstat -ano | findstr 8080

コマンドライン入力
netstat -ano | findstr 8080
コマンド実行結果
  TCP         0.0.0.0:8080           0.0.0.0:0              LISTENING       4768
  TCP         [::]:8080              [::]:0                 LISTENING       4768
ポイント 解説 備考
LISTENING 4768 プロセスID
このID(4768)は毎回違うので、都度調べる。

調べたプロセスIDをtaskkillする

PS C:\Users\hoge> taskkill /F /pid 4768

コマンドライン入力
taskkill /F /pid 4768
ポイント 解説 備考
pid プロセスID
コマンド実行結果
成功: PID 4768 のプロセスは強制終了されました。

確認

PS C:\Users\hoge> netstat -ano | findstr 8080

コマンドライン入力
netstat -ano | findstr 8080
コマンド実行結果【何も返ってこなければ成功】
PS C:\Users\hoge>
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?