Answer the question
In order to leave comments, you need to log in
How to stop server in NodeJs?
Hello!
I connected to the server via SSH...and I'm working in the PuTTY console. I
started the websocket server..everything is fine, but how can I stop it now? when I press CTRL + C it just closes the console ..... and now how to stop the server? (and restart)
Answer the question
In order to leave comments, you need to log in
it depends on how you ran it. What is a "websocket server"?
If it's just node server.js
then the easiest way is killall node or kill _pid_process_
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question