Skip to content

Instantly share code, notes, and snippets.

@jericbas
Last active April 21, 2020 02:53
Show Gist options
  • Save jericbas/9aa97a7da35fa0fa56e3cfea3ba66c91 to your computer and use it in GitHub Desktop.
Save jericbas/9aa97a7da35fa0fa56e3cfea3ba66c91 to your computer and use it in GitHub Desktop.
Kll a process running on a port
sudo lsof -i:5000

kill -9 12345
netstat -ano|findstr "PID :5000"

replace 12345 with process id

taskkill /pid 12345 /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment