Docker

[PowerShell] 특정 포트 확인 및 죽이기

Linda~! 2020. 10. 9. 22:46

특정 포트 확인 및 죽이기

(PowerShell, Cmd 창 모두 적용 가능)

 

1. 특정 포트의 PID 확인

netstat -nao |  findstr "port번호"

 

2. 해당 PID 죽이기

taskkill /f /pid "PID 번호"

 

예시 ( port : 8080)