开启永久后台:
nohup 代码运行命令 &
显示后台运行日志:
tail -fn 50 nohup.out
后台运行不生成nohup.out文件:
nohup python ftp_test.py >/dev/null 2>&1 &
nohup python test.py > test.log 2>&1 &
nohup python test.py &> test.log &
后台运行生成自定义名字日志文件:
nohup python test.py &> test.log &