[linux]nohup npm start & 启动 node 应用后,怎么结束退出呢?

  node.js, question

Linux system
nohup npm start &After starting the node application,
How to end the exit?

jobsDisplays the tasks running in the background, and the task id is the first in the displayed list.
fg NCommand switches background tasks to foreground, n is task id
Then press the shortcut keyCtrl+cOrCtrl+dretreat from

The other, as mentioned above, usespsFind the process id and use thekillKill this process