port kill pid code example
Example 1: kill port ubuntu
sudo kill -9 `sudo lsof -t -i:9001`
Example 2: cmd kill process on port
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
sudo kill -9 `sudo lsof -t -i:9001`
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F