Hello everyone,
I’m looking for the most reliable and efficient way to automatically start Node-RED when my Raspberry Pi boots.
Currently, I have to run node-red-start manually after each restart, and I would like to automate this process.
Is there a recommended method (systemd service, pm2, or other) to ensure Node-RED starts automatically at boot?
Thanks in advance for your help!
There is an install script available for Pi's. See the 'autostart on boot' section.
When you run 'node-red-start' it should print out
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.10:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
the 4th command there says
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
typing that once should set it to autostart from then on.