javascript - stop all instances of node.js server - Stack Overflow


Thu Feb 23 2023 12:59:28 GMT+0000 (UTC)

Saved by @eneki #javascript

// Find process
lsof -Pi :3000

// Kill by PID 
kill 14704

// If it doesn't work using SIGTERM will force it (The SIGTERM signal is a generic signal used to cause program termination. Unlike SIGKILL , this signal can be blocked, handled, and ignored.)
kill -9 14704