[Issue]
출처 : https://mkil.tistory.com/306
- Message
xSeveral ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
[Cause]
이클립스가 바보가 되면 이클립스를 종료해도 서버가 종료가 안되는 현상이 발생하기도 한다.
이 경우 해당 서버 port가 이미 사용중이라는 팝업이 발생한다.
[Solution]
- cmd창을 켜고 해당 포트의 PID를 확인한다.
xxxxxxxxxx
> netstat -a -n -o -p tcp
현재 내가 사용하는 8080 포트의 PID는 4556 이라는 것을 알 수 있다.
- 해당 포트의 PID를 삭제한다.
xxxxxxxxxx
> taskkill /f /pid 4556
- PID가 잘 삭제되었는지 확인한다.
xxxxxxxxxx
> netstat -a -n -o -p tcp
- was를 재실행한다.