nohup node test.js &
After running, press any key to exit and wait for input, you can continue to do other things, but when you exit at the end, you cannot directly close Xshell, you must disconnect by typing exit, and then close Xshell
nohup node test.js &
After running, press any key to exit and wait for input, you can continue to do other things, but when you exit at the end, you cannot directly close Xshell, you must disconnect by typing exit, and then close Xshell