nohup command &
exit
Then the terminal will close.
If you want to find this process and kill it due to some emergency, try "ps -aux|grep part_of_your_command " to find the PID, then “kill -9 PID” to kill the process.
linux后台执行命令,以确保终端断掉程序不会断。
最新推荐文章于 2024-06-30 09:40:26 发布