nohup + 命令 + &


nohup command &



例如:nohup node server.js &


fffnohup 作用是 即使關(guān)閉進程也能運行進程

& 作用是 是后臺運行進程

切記不能直接推出,需要 用exit后再關(guān)閉