Address already in use

Published onesixx on

[Errno 48] Address already in use

Port 8080 is in use by another program.

Either identify and stop that program, or start the server with a different port.

$ sudo lsof -i:8066
COMMAND     PID    USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
python3.9 34284 onesixx    7u  IPv4 0x174a98be79c43059      0t0  TCP localhost:8066 (LISTEN)
python3.9 34293 onesixx    7u  IPv4 0x174a98be79c43059      0t0  TCP localhost:8066 (LISTEN)
python3.9 34293 onesixx    9u  IPv4 0x174a98be79c43059      0t0  TCP localhost:8066 (LISTEN)


$ sudo kill -9 34284  34293

해당 port를 사용하는 process 죽이기

$ sudo lsof -t -i:8066 | xargs sudo kill -9 

#$ sudo lsof -t -i:8066 | awk '{print $1}' | xargs sudo kill -9 
Categories: Ubuntu

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x