Created
June 14, 2018 15:37
-
-
Save nara-l/17f37ee3ffd06306d5933e96c39b94ff to your computer and use it in GitHub Desktop.
Open clogged port. Error: port already in use python on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change port number to clear the neccessary port | |
sudo lsof -t -i tcp:8000 | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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