# Permanent running Node-Red Methods?

**URL:** <https://discourse.nodered.org/t/permanent-running-node-red-methods/44843>\
**Category:** General\
**Created:** [28 April 2021 08:23 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843 "2021-04-28T08:23:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eintracht00](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@Eintracht00](https://discourse.nodered.org/u/Eintracht00)\
**Post date:** [28 April 2021 08:23 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/1 "2021-04-28T08:23:46Z")

</div>

Hey which Methods do I have to run my Node-Red automatically and permanent.  
I made it locally on my Laptop.  
Now I am thinking about a VM or something like that.

- Which ways do I have?
- Pro's & Con's?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 April 2021 08:40 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/2 "2021-04-28T08:40:28Z")

</div>

What OS are you running? If you are using a Debian based system (such as Raspbian or Ubuntu) and have used the recommended install script in the node red docs then all you have is  
`sudo systemctl enable nodered`

I believe there are suggestions for how to do it on Windows in the docs for installing on Windows so have a look there.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 April 2021 08:51 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/3 "2021-04-28T08:51:47Z")

</div>

NOTE: Assuming windows...

> [@Eintracht00](#):
>
> Which ways do I have?

- NSSM
- PM2
- Scheduled Task
- shortcut to node-red in start up folder
- many many "tray-it" type apps (search internet for tray-it alternatives)

> [@Eintracht00](#):
>
> Pro's & Con's?

- NSSM  
Runs as a service (runs even when you log off)
- PM2  
Can run as as a service (bit more fiddly to setup)
- Scheduled Task
- shortcut to node-red in start up folder
- many many "tray-it" type apps (search internet for tray-it alternatives)  
Can set it to run when you log on  
CON: Will be visible in taskbar (easy to close accidentally)  
CON: Stops if you log-off

All have their merits - I prefer NSSM

Here is a pointer to [one of the many posts about NSSM](https://discourse.nodered.org/t/running-node-red-server-as-a-service/20666/3) on this forum

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 April 2021 21:31 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/4 "2021-04-28T21:31:51Z")

</div>

I think that the real question is not the OS (choose any convenient one) but _where_ you want to run it?

On a local network, somewhere "in the cloud"?

As a follow-up Q, who needs access and where are they? Lots of people? Just a few? Over the Internet? Or just a private network?

---

<div class="post-metadata">

**Author:** ![echoix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/echoix/32/39627_2.png) [@echoix](https://discourse.nodered.org/u/echoix)\
**Post date:** [29 April 2021 01:15 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/5 "2021-04-29T01:15:34Z")

</div>

There is also with docker that you can run your container with `--restart unless-stopped` that will let docker monitor that the container running Node-RED is restarted if it crashes

---

<div class="post-metadata">

**Author:** ![Eintracht00](https://avatars.discourse-cdn.com/v4/letter/e/3d9bf3/32.png) [@Eintracht00](https://discourse.nodered.org/u/Eintracht00)\
**Post date:** [29 April 2021 05:12 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/6 "2021-04-29T05:12:24Z")

</div>

what is NSSM

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 April 2021 08:40 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/7 "2021-04-29T08:40:49Z")

</div>

@Eintracht00

> what is NSSM

[Let me google that for you](https://letmegooglethat.com/?q=what+is+NSSM) 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 June 2021 08:41 UTC](https://discourse.nodered.org/t/permanent-running-node-red-methods/44843/8 "2021-06-28T08:41:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
