E
E
exxagw2017-01-16 02:41:02
SSH
exxagw, 2017-01-16 02:41:02

How to restart nodejs?

The question is extremely noob.
I connect via shh to the server
, execute the $ node test.js command,
then $ disappears, and now the commands in the node are all.
I write anything and it gives me [[^A and so on.
So how do you run a command? I need to restart the test.js file

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Archakov Dennis, 2017-01-16
@exxagw

ctrl+c

A
ANDRE888, 2017-01-16
@ANDRE888

You can use "forever" to run js in the background
https://www.npmjs.com/package/forever

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question