how to stop node js server in terminal code example
Example 1: how to stop a node server from running
ps aux | grep node
kill -9 PROCESS_ID
Example 2: node js stop
process.exit();
ps aux | grep node
kill -9 PROCESS_ID
process.exit();