# Forever - how to running Node Red continuously

**URL:** <https://discourse.nodered.org/t/forever-how-to-running-node-red-continuously/15511>\
**Category:** General\
**Created:** [13 September 2019 13:49 UTC](https://discourse.nodered.org/t/forever-how-to-running-node-red-continuously/15511 "2019-09-13T13:49:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [13 September 2019 13:49 UTC](https://discourse.nodered.org/t/forever-how-to-running-node-red-continuously/15511/1 "2019-09-13T13:49:23Z")

</div>

Hope to get some guidance.

We Have Node Red on AWS EC2 -Flows and Dashboard all working flawlessly.  
I am not too experienced in sys adm ( coming from different background) so need so guidance.

**Problem that we need help on:**  
**1. How do we keep the NodeRed running continuosly so we can always access the Node Red app?**

So far, we have tried installed "npm install forever -g:"  
Then entered "forever node-red"

We get some errors about scripts, but really again. not sure what all this is about.

ubuntu@ip-172-31-28-82:~/.node-red$ forever red  
warn: --minUptime not set. Defaulting to: 1000ms  
warn: --spinSleepTime not set. Your script will exit if it does not stay up f  
error: Cannot start forever  
error: script /home/ubuntu/.node-red/red does not exist.  
ubuntu@ip-172-31-28-82:~/.node-red$ forever node-red  
warn: --minUptime not set. Defaulting to: 1000ms  
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms  
error: Cannot start forever  
error: script /home/ubuntu/.node-red/node-red does not exist.

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [13 September 2019 14:41 UTC](https://discourse.nodered.org/t/forever-how-to-running-node-red-continuously/15511/2 "2019-09-13T14:41:28Z")

</div>

Ubuntu iirc comes with Systemd. The Node-RED docs contain a unit file for systemd. If you set that one up, reload, then start/enable the service you’re done. You can find it in the install instructions for local installs, then linux/raspi/ubuntu section

---

<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:** [13 September 2019 15:09 UTC](https://discourse.nodered.org/t/forever-how-to-running-node-red-continuously/15511/3 "2019-09-13T15:09:46Z")

</div>

Don't forget to uninstall forever which you won't need.
