linux挂后台进程跑程序命令 nohup python program.py > output.log 2>&1 & program.py 为要运行的python程序 ouput.log为程序中所有的输出保存的日志文件