I have a simple TCP server that listens on a port.
var net = require(\"net\"); var server = net.createServer(function(socket) { socket.end(\"Hello!\\n\"
Ctrl+Z suspends it, which means it can still be running.
Ctrl+C will actually kill it.
you can also kill it manually like this:
ps aux | grep node
Find the process ID (second from the left):
kill -9 PROCESS_ID
This may also work
killall node