How to stop node-red on Mac OS

2,176 views
Skip to first unread message

Trevor Muraro

unread,
Dec 4, 2017, 4:30:32 AM12/4/17
to Node-RED
I have just installed node-red on my Mac with "sudo npm install -g node-red".  After installing, I can start node-red from the command line with "node-red", and node-red shows up at localhost:1880 just like it should.  What I don't know is how to stop it.

The documentation on nodered.org says how to start node-red, but not how to stop it.  The "upgrading" page says to stop node-red before upgrading, so it's clearly possible.  I've tried "node-red-stop" from the Raspberry Pi documentation, but neither that nor "node-red-start" are recognized as commands.  I can stop node-red with Ctrl+C in the Terminal window I started node-red in, but I sincerely hope that's not the only way to do it.

Any advice would be appreciated.

Nick O'Leary

unread,
Dec 4, 2017, 4:38:47 AM12/4/17
to Node-RED Mailing List
Hi Trevor,

Installing the node-red package from npm gives you the `node-red` command which directly runs the node process. The only way to stop it is to ctrl-c in the terminal you ran it in.

The documentation on running node-red goes on to describe how to run node-red automatically (https://nodered.org/docs/getting-started/running), using the pm2 node runner.

On the Raspberry Pi, the upgrade script we provide installs NR as a systemd service. In that instance we also provide the node-red-start/stop commands to wrap the corresponding systemd commands.

Nick



--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/5b0caeba-1049-493c-b0bf-f348da338e53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trevor Muraro

unread,
Dec 4, 2017, 5:05:48 AM12/4/17
to Node-RED
Hi Nick,

I see.  I just got node-red up and running with pm2.  Thanks!

-Trevor

On Monday, December 4, 2017 at 1:38:47 AM UTC-8, Nick O'Leary wrote:
Hi Trevor,

Installing the node-red package from npm gives you the `node-red` command which directly runs the node process. The only way to stop it is to ctrl-c in the terminal you ran it in.

The documentation on running node-red goes on to describe how to run node-red automatically (https://nodered.org/docs/getting-started/running), using the pm2 node runner.

On the Raspberry Pi, the upgrade script we provide installs NR as a systemd service. In that instance we also provide the node-red-start/stop commands to wrap the corresponding systemd commands.

Nick


On 4 December 2017 at 09:30, Trevor Muraro <trevor...@gmail.com> wrote:
I have just installed node-red on my Mac with "sudo npm install -g node-red".  After installing, I can start node-red from the command line with "node-red", and node-red shows up at localhost:1880 just like it should.  What I don't know is how to stop it.

The documentation on nodered.org says how to start node-red, but not how to stop it.  The "upgrading" page says to stop node-red before upgrading, so it's clearly possible.  I've tried "node-red-stop" from the Raspberry Pi documentation, but neither that nor "node-red-start" are recognized as commands.  I can stop node-red with Ctrl+C in the Terminal window I started node-red in, but I sincerely hope that's not the only way to do it.

Any advice would be appreciated.

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Zenofmud

unread,
Dec 4, 2017, 5:06:01 AM12/4/17
to Node-RED
Trevor.

I use an automator task to start/stop Node-Red on my mac. I got it from this link https://ptarmiganlabs.com/blog/2015/02/15/start-node-red-on-os-x-login/
and it has been working great.

Paul
Reply all
Reply to author
Forward
0 new messages