porta di uccisione di Windows
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
uccidi il processo sulla porta
#To list any process listening to the port 8080:
lsof -i:8080
#To kill any process listening to the port 8080:
kill $(lsof -t -i:8080)
#or more violently:
kill -9 $(lsof -t -i:8080)
uccidi il processo sulle finestre delle porte
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
processo di uccisione cmd sulla porta
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
uccidi una porta in Windows cmd
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID <ID_HERE> /f
//can be found on the last column next to LISTENING
____________________________________________________________________________
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 24660
____________________________________________________________________________
!!
taskkill /PID 24660 /f
uccidi il processo sulla porta
#list process running on specified port (here 80, change to your port)
sudo lsof -i:80
#kill process on specified port (here 80, change to your port)
sudo kill $(sudo lsof -t -i:80)