O
O
OneQver2020-03-03 08:51:20
SSH
OneQver, 2020-03-03 08:51:20

How to run a node script over ssh?

Good day, I posted a nodejs parser on vds under ubuntu. Installed all required dependencies there. I run the script via ssh through the terminal, everything works, but when I close the terminal, the script stops working.
How can I run a script remotely and not keep the terminal open all the time?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly, 2020-03-03
@OneQver

look in the direction of pm2, a very handy thing

E
Eugene, 2020-03-03
@Nc_Soft

You can use screen

P
pfg21, 2020-03-03
@pfg21

draw a task for the service manager so that he starts it himself and restarts it in case of a crash

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question