그냥 개발자 블로그

이클립스에서 톰캣 재실행 안되고 오류나는 경우 for Mac 본문

IT소식&팁

이클립스에서 톰캣 재실행 안되고 오류나는 경우 for Mac

마음이파파 2020. 11. 18. 17:04

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

 

 

위와 같은 오류가 발생한다면 완전히 종료되지 않아서 문제가 발생하는 경우 입니다.

터미널에서 아래 명령어를 순차로 실행시켜 강제로 종료 시키면 해결 됩니다.

 

sudo lsof -I :8080

sudo kill -9 28672

 

위에서 8080은 톰캣에서 사용하고 있으신 포트번호를

28672는 'sudo lsof -I :8080' 실행 후 나오는 프로세스 번호를 대입하면 됩니다.

 

끝.

 

 

워크식스 : cs@work6.kr