톰캣 서버 구동시 해당 포트가 이미 사용중이라는 오류 메세지 출력
오류 메세지 내용
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).
- 8005, 8080 포트가 이미 사용되고 있다는 오류 메세지
해결 방법
포트번호로 PID를 찾아 프로세스를 종료하면 된다.
WINDOWS
//연결된 전체 목록 보기
netstat -ano
// 8080 포트만 찾고 싶을때
netstat -ano | find "8080"
//프로세스 종료하기
taskkill /f /pid [PID]
예) taskkill /f /pid 1234
MAC
//포트번호로 찾기
lsof -i :[포트번호]
//프로세스 종료하기
kill -9 [PID]
반응형