0
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?

【Mac】特定のポートを即座にKILL(解放)する方法

0
Last updated at Posted at 2026-06-10

1行で特定のポートをKILLする

kill -9 $(lsof -t -i:9000) 

※killしたいPORT置き換え

慎重にプロセスを確認してKILLする

  • ポートを使っているPID(プロセスID)を調べる

    lsof -i :9000    
    

    ※killしたいPORT置き換え


  • 対象のPIDを指定してKILLする

    kill -9 <PIDの数値>
    

終わり

0
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
0
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?