linux 포트검색으로 8080 죽이기
2020. 8. 10. 15:19ㆍ카테고리 없음
SpringBoot 에서 작업하다가 8080 포트 사용중이라며 run fail 될때가 있다.
에러 내용:
Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
# 8080 포트 사용중인 곳 pid 가져오기
netstat -tnlp|grep 8080
하면
쓰고있는 포트가 있다면
다음과 같이 뜬다. 28814가 pid다.
tcp6 0 0 :::8080 :::* LISTEN 28814/java
#해당 프로세스 죽이기
kill -9 28814
죽이고 나니 잘돌아간다!
출처: