[Windows 10] 사용 중인 포트 확인 및 종료

ASHAPPYASIKNOW·2021년 10월 18일
0

OS(Linux, Mac, Windows)

목록 보기
6/9
post-thumbnail

IntelliJ로 작업하다 보면 사용하려는 port가 정상적으로 종료가 되지 않아서 사용하지 못하는 경우가 발생한다. 이 경우 netstat와 taskkill의 조합으로 해결할 수 있다.


사용중인 포트 확인

netstat -ano | findstr {port number}
ex) netstat -ano | findstr 12000

taskkill /f /pid {pid}
ex) taskkill /f /pid 30288


REFERENCES

윈도우10 사용중인 포트 확인 및 종료하는 법
find-and-kill-process-locking-port-3000-on-mac

profile
36.9 It's good time to start something new

0개의 댓글