IntelliJ로 작업하다 보면 사용하려는 port가 정상적으로 종료가 되지 않아서 사용하지 못하는 경우가 발생한다. 이 경우 netstat와 taskkill의 조합으로 해결할 수 있다.
netstat -ano | findstr {port number}
ex) netstat -ano | findstr 12000
taskkill /f /pid {pid}
ex) taskkill /f /pid 30288
윈도우10 사용중인 포트 확인 및 종료하는 법
find-and-kill-process-locking-port-3000-on-mac