etc.
[IntelliJ] The port was already in use
Jane Kwon
2021. 2. 10. 09:50
반응형
인텔리제이가 에러나서 강제종료 후 다시 실행했을 때
아래와 같은 문제로 인하여 실행이 안되는 경우가 발생한다.
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 20202 was already in use.
Action:
Identify and stop the process that's listening on port 20202 or configure this application to listen on another port.
Disconnected from the target VM, address: '127.0.0.1:61117', transport: 'socket'
Process finished with exit code 1
해당 포트를 이미 다른 곳에서 사용 중이라는 에러가 발생하는데
이 경우에 해결방법은 터미널에서 해당 포트를 사용 중인 프로세스를 찾아
% lsof -i :20202
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 72392 jane-com 196u IPv6 0x8e7a83605aa18df3 0t0 TCP *:ipdtp-port (LISTEN)
죽여주면 다시 실행이 가능하다.
% kill -9 72392
반응형