Launched node js code in a Ubuntu terminal through node main_node.js &; usually after giving the identification number. To disable, you need the commands => ps -ef | grep node kill (defined by id). made clear, forgetting that I had this identity number there. Can I get to know him?

  • Tip: if you don't want to deal with forever, you can use the screen command to connect / disconnect to the nodejs "console". - Alexander Prokoshev
  • Well, imagine a RDP session from which you can disconnect without terminating it? It seems that only they can be many, and they are on the local machine. That is, they launched in the terminal screen, they launched node.js (without &), disconnected from the session; launched one more, there is still a node.js instance, disconnected. And then, if you need to see what they have written to the console, connect to what you want. google: // "screen node.js" - Alexander Prokoshev

2 answers 2

You can make it even easier

# killall node

    Already figured out. After

    ps -ef | grep node 

    There was some information, among which was this one:

     hovhann+ 13564 13296 0 00:07 pts/0 00:00:00 node main_node.js 

    13564 and was this very identification number. after

     kill 13564 

    node application is disabled.

    • ps -A | grep node ps -A | grep node - 0-Level UNIX Monk