티스토리 뷰

ERROR/SQL

localhost are already in use

onlyun 2022. 3. 15. 13:55

 

[Error]

Port 8005 required by Tomcat v9.0 Server at localhost is 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).

 

 

[원인]

STS 강제 종료 후, 재실행해서 서버 사용할 때 오류 발생

>> 톰캣이 사용하고 있는 기본 포트(8005)가 이미 사용 중이라서 발생하는 오류

 

 

[해결] 기본 포트를 삭제

 

CMD(명령프롬프트)

>> netstat -p tcp -ano  #로컬 주소에 8005인 pid를 찾음

>> taskkill /f /pid (8005인 pid)  #8005 서버 종료

#pid 프로세스 종료되었다고 떴으면 port 확인 8005 없는지
#STS에서 실행하면 포트 충돌없이 사용 가능

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함