Killing a certain process using a specific port (windows users)
- Open powershell or cmd or any terminal you have as administrator.
- import the file killProcessByPid.ps1
Import-module .\killProcessByPid.ps1 -Force
- Enjoy by killing any process using the function killByPort:
killByPort $Port
Import-module .\killProcessByPid.ps1 -Force
killByPort 3000