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

PHOTO EMBED

Thu Feb 23 2023 12:59:28 GMT+0000 (Coordinated Universal Time)

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

content_copyCOPY

https://stackoverflow.com/questions/14790910/stop-all-instances-of-node-js-server