Node-RED: Difference between revisions
Jump to navigation
Jump to search
Created page with "# useradd -m -s /bin/bash nodered # su -l nodered /usr/x86_64-pc-linux-gnu/lib/systemd/system/nodered.service <pre> [Unit] Description=Node-RED flow-based programming for th..." |
No edit summary |
||
| Line 1: | Line 1: | ||
# useradd -m -s /bin/bash nodered | # useradd -m -s /bin/bash nodered | ||
/usr/x86_64-pc-linux-gnu/lib/systemd/system/nodered.service | /usr/x86_64-pc-linux-gnu/lib/systemd/system/nodered.service | ||
| Line 28: | Line 26: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</pre> | </pre> | ||
systemctl daemon-reload | |||
# su -l nodered | |||
$ npm install node-red | |||
Revision as of 18:00, 29 October 2017
- useradd -m -s /bin/bash nodered
/usr/x86_64-pc-linux-gnu/lib/systemd/system/nodered.service
[Unit] Description=Node-RED flow-based programming for the Internet of Things After=syslog.target network.target Documentation=https://nodered.org/docs [Service] Type=simple User=nodered Group=nodered WorkingDirectory=/home/nodered Environment="NODE_OPTIONS=--max_old_space_size=256" # uncomment and edit next line if you need an http proxy #Environment="HTTP_PROXY=my.httpproxy.server.address" # uncomment the next line for a more verbose log output #Environment="NODE_RED_OPTIONS=-v" ExecStart=/usr/host/bin/node $NODE_OPTIONS red.js $NODE_RED_OPTIONS KillSignal=SIGINT Restart=on-failure SyslogIdentifier=Node-RED [Install] WantedBy=multi-user.target
systemctl daemon-reload
- su -l nodered
$ npm install node-red