1.当前终端后端运行
test.sh &
2.退出终端仍然后端运行
nohup test.sh &
Linux运维笔记-后端运行脚本
原文:http://www.cnblogs.com/coder-ct/p/6475574.html