D
D
Dilik Pulatov2018-06-05 15:39:06
SSH
Dilik Pulatov, 2018-06-05 15:39:06

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

1 answer(s)
A
Anton Shvets, 2018-06-05
@Xuxicheta

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 question

Ask a Question

731 491 924 answers to any question