后台运行程序并且打印日志到文件

nohup run.sh >out.log 2>&1 &