how to kill server code example
Example 1: rails kill server
kill -9 $(lsof -i tcp:3000 -t)
Example 2: kill rails
lsof -wni tcp:3000
kill -9 PID
Example 3: kill local host bash
npx kill-port 8080
Example 4: how to kill server
sudo lsof -iTCP:8080 -sTCP:LISTEN