[Tomcat] Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost are already in use.
|2023. 3. 16. 15:13
728x90
Several ports (8005, 8080, 8009) 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).
1. 문제확인
> was 재시작을 위한 포트가 이미 사용중이기 때문이다.
2. 문제해결
> 다음과 같이 포트를 사용하고 있는 pid를 확인하여 강제 종료 시켜준다.
> netstat -a -n -o -p tcp |
– 포트를 사용중인 pid는 4444 이다
> taskkill /f /pid 4444 |
– 해당 프로세스가 종료되었다. 다시 포트를 확인해본다.
> netstat -a -n -o -p tcp |
– 이제 포트를 사용할 수 있게 되었다. was를 시작하면 에러가 발생하지 않는다.
728x90
'개발&etc > Spring boot' 카테고리의 다른 글
[Spring Boot] spring/springboot 공부 자료 모음 (0) | 2023.04.25 |
---|---|
[Spring] 게시물 글 리스트 페이지 삭제하기 (0) | 2023.03.20 |
[Tomcat]Server Tomcat v9.0 Server at localhost failed to start. (0) | 2023.03.16 |
[스프링] 스프링 입문 - 코드로 배우는 스프링 부트, 회원관리 예제 (0) | 2023.02.15 |
[스프링] 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 (2) | 2023.02.15 |