nohup command > myout.file 2>&1 &
2>&1 2代表标准错误 1代表标准输出 将标准错误和输出都重定向到myout.file
查看实时打印信息:tail -f nohup.out
appending output to nohup.out
nohup command > myout.file 2>&1 &
2>&1 2代表标准错误 1代表标准输出 将标准错误和输出都重定向到myout.file
查看实时打印信息:tail -f nohup.out
appending output to nohup.out