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 key
The other, as mentioned above, uses
psFind the process id and use the
killKill this process