오류 메세지 :

several ports (8005, 9999) 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).

 

Mac ) 해결방법 :

터미널 창에서

//포트번호로 찾기
lsof -i :[포트번호]

//프로세스 종료하기
kill -9 [PID]

 

윈도우 ) 해결방법 :

명령 프롬포트에서

netstat -p tcp -ano 치고 8080, 9999 포트 사용 중인 pid 찾아서

taskkill /f /pid (번호) 치고 강제 종료

번호 칠 때는 괄호 없어야 한다.

 

 

맥은 윈도우와 명령어가 다르다! 

그리고,, 맥에서는 톰캣은 꼭 종료 시 서버를 잘 끄고, 실행했던 서버도 다 죽여야 다음에 저런 오류가 안뜬다.

이클립스 자체도 별로지만 맥이 이클립스를 좀 예민하게 받아들이는 것 같다..

+ Recent posts