본문 바로가기

카테고리 없음

nohup.out실행시 8080 was already in use

반응형
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.

위와 같은 에러가 나왔다.

ec2 서버에서는 netstat -ano 로 검색하면 pid가 검색되지 않음.

관리자 계정이나, sudo로 해줘야 되었던 것이다...

sudo netstat -tnlp | grep 8080

나온 pid를 죽인다!

kill -9 [PID]

 

해결 : https://velog.io/@semi-cloud/Spring-Boot-Web-server-failed-to-start.-Port-8080-was-already-in-use-%EC%97%90%EB%9F%AC

반응형