Skip to content

Instantly share code, notes, and snippets.

@nara-l
Created June 14, 2018 15:37
Show Gist options
  • Save nara-l/17f37ee3ffd06306d5933e96c39b94ff to your computer and use it in GitHub Desktop.
Save nara-l/17f37ee3ffd06306d5933e96c39b94ff to your computer and use it in GitHub Desktop.
Open clogged port. Error: port already in use python on Mac
# change port number to clear the neccessary port
sudo lsof -t -i tcp:8000 | xargs kill -9
@nara-l
Copy link
Author

nara-l commented Nov 17, 2020

@nara-l
Copy link
Author

nara-l commented Nov 24, 2021

To find specific process on command line use below command here 8080 is port used by process

netstat -ano | findstr 8080
to kill process use below command here 21424 is process id

taskkill /pid 21424 /F

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment