Tuesday, November 22, 2022

[Resolved][Errno 48] error while attempting to bind on address ('127.0.0.1', 8000): address already in use

Error:

[Errno 48] error while attempting to bind on address ('127.0.0.1', 8000): address already in use

Method 1

run this command to get the the related process

#ps -fA | grep python 

Mark down the second number of returned results. 

#kill 1192 


Method2 

Kill all process on 8000 port: 

#kill -9 $(lsof -t -i:"8000") 


Reference:

https://stackoverflow.com/questions/34457981/trying-to-run-flask-app-gives-address-already-in-use

https://stackoverflow.com/questions/19071512/socket-error-errno-48-address-already-in-usePE4WW9ubHOASEzgiT6lDg65jIDE/edit

No comments :

Post a Comment