@traderjoe (Trader) posted a new topic, subject "Running node-red and using putty". It read:

   Simple problem here:  
    I'm running node-red on a raspberry pi. I putty in and I start up my node-red.
    
    How do I use the SSH to do something else now? After staring up node-red, it doesn't go back to the prompt. I can't close my putty or node-red shuts down. What do I do?

After which, @jbudd added

    Enable Node-Red as a systemd service:
    [code] 
        sudo systemctl enable nodered
        sudo systemctl start nodered
        
    [/code]
    
    Access Node-Red using a browser from any machine on your network
    
    `<Raspberry Pi IP address>:1880`

@davidz (David) replied

    Press "CTRL+C", Node-RED will continue running in the background.
    
    You can go back to the command line.
    
    Also like Jbudd suggested, run Node-RED as systemd service.

So @Colin replied

    davidz:
    
    > Press "CTRL+C", Node-RED will continue running in the background.
    
    That is true if node red is started using `node-red-start` which starts it as a service, but not if started using `node-red`.  
    That assumes that node red was installed as described for the pi in the node red docs of course.

So @TotallyInformation (Julian Knight) replied

    4 options:
    
      * Open a new PuTTY window
      * Install a terminal multiplexer such as byobu, TMUX, or GNU Screen
      * Send to the background using Linix job controls. Start node-red with something like `npm start &`
      * Set up and use a systemd job for Node-RED

Then @davidz (David) said

    It is good to know. I always use "node-red-start" to check if there is anything wrong with the flows.

So @system (system) replied

    This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.


{'source': 'discourse', 'url': 'https://discourse.nodered.org/t/running-node-red-and-using-putty/53181', 'title': 'Running node-red and using putty', 'views': 553, 'has_accepted_answer': False, 'word_count': 266, 'like_count': 1, 'reply_count': 2, 'participant_count': 5, 'posts': 7, 'tags': '', 'author': '@traderjoe (Trader)', 'participants': '@traderjoe (Trader), @jbudd, @davidz (David), @Colin, @TotallyInformation (Julian Knight), @system (system)', 'image_url': [None], 'created_at': '2021-11-03T18:04:28.313Z', 'last_posted_at': '2022-01-02T21:03:20.244Z'}