본문 바로가기

SERVER/Error

[Error] Tomcat port 오류 - Several ports (8005, 8080) required by Tomcat v9.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 t..

 

 

톰캣을 구동 할 때 생기는 포트 오류.

주로 이클립스가 비정상적으로 종료 된 뒤 재구동 할 때 발생 함.

 

Several ports (8005, 8080) required by Tomcat v9.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).

 

Tomcat이 사용하고 있는 기본 포트(8080, 8009, 8005)가 이미 사용중이라서 생기는 오류.

사용중인 포트를 변경하거나, 해당 포트를 사용하고 있는 pid를 확인하여 삭제하면 됨.

 

cmd 관리자 권한으로 실행 

> netstat -p tcp -ano

> 로컬주소가 (8080,8005,8009)인 프로토콜 확인

> taskkill /f /pid 번호

 

나는 얼마 전에 지워서 그런지 없음.

Eclipse 재부팅하니 해결.

 

+ Eclipse는 재부팅할 경우 에러가 없어지는 경우가 많은데,

고질적인 문제인 것 같다.

에러가 난다고 해서 무조건 재부팅하여 해결하는 것도 답은 아니다.