> 작성일 : 2017.03.31
> OS : Windows7
개발중 비정상적인 was 종료로 인해 다음과 같은 에러와 함께 재시작 되지 않는다. 실 운영환경에서도 이런경우가 있다.
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).
was 재시작을 위한 포트가 이미 사용중이기 때문이다.
다음과 같이 포트를 사용하고 있는 pid를 확인하여 강제 종료 시켜준다.
netstat -a -n -o -p tcp
포트를 사용중인 pid는 4444 이다
해당 프로세스가 종료되었다. 다시 포트를 확인해본다.
netstat -a -n -o -p tcp
이제 포트를 사용할 수 있게 되었다. was를 시작하면 에러가 발생하지 않는다.
Tags : development, etc, java was, trouble shooting