运行python文件: #方法1 nohup python demo.py > my.log 2>&1 & #方法2 nohup python demo.py > nohup.txt 2>&1 & #方法3 nohup python demo.py & # 与方法2等价