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).

 

처음 연결시 잘 작동되다가 두 번째부터 이런 에러가 발생했다

 

기본 포트 (8080, 8009, 8005)가 이미 사용 중이라 생기는 오류라는데

저기서 State가 Started로 되어 있는 포트를 선택해서 사용하면 연결이 되기는 한다

 

1. 일단 cmd창에서 포트에 연결된 pid를 확인해본다

netstat -p tcp -ano 입력

2. 포트를 사용 중인 pid를 찾아 삭제한다

기본 포트(8080, 8009, 8005)

9808 해당

 

taskkill /f /pid9808 입력

종료되었다는 문구가 뜨면

 

다시 netstat -p tcp -ano 입력해서 연결된 포트 확인

기본포트를 사용하는 프로세스가 없다

해결!

 

 

 

 

참고

https://to-dy.tistory.com/59

+ Recent posts