강제적으로 포트 죽이기 - Error-Several ports (8005, 8080, 8009) required by Tomcat v7.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 serv..

CODEDRAGON Development/JSP

반응형

 

 

 

오류메시지

 

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


 

 

 

 

오류 원인

동일한 포트를 사용하고 있는 다른 서비스가 있는 경우에 발생합니다.

 

 

 

해결방법

·       충돌이 나는 포트번호를 사용하지 않고 다른 포트 번호로 변경합니다.

·       http://codedragon.tistory.com/3940

·       시스템을 재부팅합니다. (사용중인 톰캣이 오동작 한 경우)

·       사용중인 톰캣이 오동작한 경우 해당 포트를 강제로 죽인 후 다시 사용하면 됩니다.

 

 

 

 

해당 포트 번호를 사용하고 있는 프로세스 강제로 종료하기

 

톰캣에서 사용하고 있는 포트 확인

 

 

 

톰캣이 사용중인 포트의 PID확인하기

포트번호 8005번을 사용중이며 PID 21648입니다.

netstat -ao

 

 

 

 

PID의 프로세스 종료하기

taskkill 명령어로 /pid 뒤에 종료하고자 하는 pid를 입력하면 해당 pid의 프로세스를 중지할 수 있습니다.

taskkill /f /pid 21648

 

 

 

 

반응형