terminal command kill the server mac code example
Example 1: kill process on port windows
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
Example 2: kill port mac terminal
sudo lsof -i <Port>
sudo kill -9 <PID>
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
sudo lsof -i <Port>
sudo kill -9 <PID>