I’ve installed and is running a node.js server on osx. I’ve dled a chat module and is happily running it. I’ve altered some pieces and need to restart the server to see the effects.
I only know how to restart by closing the terminal window and then reopneing it and then running node chatdemo.js again.
Any way to restart without closing terminal?
Thanks.
If it’s just running (not a daemon) then just use
Ctrl-C.If it’s daemonized then you could try:
Where
PIDis replaced by the number in the output ofps.