Running Node-Red Server as a Service


I have created a node-red program to send emails and text messages, it is all working fine and is about to be uploaded to its own little server.
My question is, is there a way to run it as a service on the server and are then any cons to doing so.
The server will be running Windows Server 2008 R2 however as its a virtual server can be configured as required if this is a problem.

Thanks in advance,
P.s Ideally the solution wont involved installing any 3rd party software like RunAsService but i am open to ideas

This has been covered several times before in the forum, you should be able to search for it. You can also search on the Internet for running node.js as a service. There are various options.

1 Like

some pointers...

For the record - I use NSSM on windows server

1 Like

For Windows I can recommend NSSM as well.

On Linux systems I often use PM2 (launched by systemd) in conjunction with an ecosystem file.

I'd personally only use PM2 (actually I use the lighter weight nodemon) for a development environment. systemd on its own does a fine job for running daemons.

Thanks Everyone,

Using NSSM worked a treat.

P.s Sorry for making this post, i somehow missed the other posts in the forum.

1 Like