linux nohup

使用&可以使得程序在后台运行,但是当当前终端关闭的时候,程序也会停止;
此时可以使用nohup命令,
比如

假设运行的脚本是test.sh
nohup sh ./test.sh  > /dev/null 2>&1 & 
原文地址:https://www.cnblogs.com/yldf/p/11900056.html