cd 到需要运行的文件目录下运行
nohup python xxxxxx.py > run.log 2>&1 &
xxxxxx.py是你想要运行的python文件,run.log是运行时的日志文件。
回车会出现进程编号
如果成功,在该目录下会产生run.log文件
原文:
https://blog.csdn.net/A_Tu_daddy/article/details/114217206
cd 到需要运行的文件目录下运行
nohup python xxxxxx.py > run.log 2>&1 &
xxxxxx.py是你想要运行的python文件,run.log是运行时的日志文件。
回车会出现进程编号
如果成功,在该目录下会产生run.log文件
原文:
https://blog.csdn.net/A_Tu_daddy/article/details/114217206