Skip to content

Instantly share code, notes, and snippets.

@phattranky
Created June 26, 2020 09:14
Show Gist options
  • Save phattranky/a68937807965c3148d5fb76232533a48 to your computer and use it in GitHub Desktop.
Save phattranky/a68937807965c3148d5fb76232533a48 to your computer and use it in GitHub Desktop.
Find out the process ID (PID) which is occupying the port number (e.g., 5955) you would like to free
sudo lsof -i :5955
Kill the process which is currently using the port using its PID
sudo kill -9 PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment