Hi,
I have created a node-red application that works together with an Opto 22 controller to monitor alarms. I installed the app on the computer used on the company where it is going to be working. But sometimes operators close the command prompt where the node-red is running and the app stops.
Is there a way to run node red as a windows service?. In that way as the computer is turned on, node red would be instantiated.
1 Like
Yes.
nssm.md
#### Running Node-RED as a service on Windows using NSSM
These instructions assume you installed Node-RED from an [administrator enabled command prompt](https://technet.microsoft.com/en-gb/library/cc947813%28v=ws.10%29.aspx) using the `npm install -g node-red` command to do so.
As an **administrator**, install nssm from [https://nssm.cc/download](https://nssm.cc/download)
And then from the directory where you installed nssm, run the commands
mkdir c:\temp
nssm install Node-RED "c:\Users\\"%USERNAME%"\AppData\Roaming\npm\node-red.cmd"
This file has been truncated. show original
Running Node-RED as a service on Windows using NSSM ...
Hello guys
I'm running the red node with windows and would like to know how to automatically start it.
With the task manager it did not work well.
I configured using NSSM and until it starts but when I changed, for example, the port it did not load.
Anyone have any idea what might be happening?
Running Node Red in Windows - General - Node-RED Forum
Hi everyone, so as the title suggest, i'm running node-red on windows server. The server reboots it self every night at some fixed time, and when it "comes back" does not start the session, but it starts all the services except the node-red, so my question is how can i make the node-red start without having to initiate the session?
Greatings.
Andrés
Running on windows server 2012 r2 - General - Node-RED ...
https://nodered.org/docs/faq/starting-node-red-on-boot
Starting Node-RED on boot : Node-RED
1 Like