cd 到需要运行的文件目录下运行
nohup python xxxxxx.py > run.log 2>&1 &
xxxxxx.py是你想要运行的python文件,run.log是运行时的日志文件。
回车会出现进程编号
ps
可以查看正在运行的进程,如果成功,在该目录下会产生run.log文件
cd 到需要运行的文件目录下运行
nohup python xxxxxx.py > run.log 2>&1 &
xxxxxx.py是你想要运行的python文件,run.log是运行时的日志文件。
回车会出现进程编号
ps
可以查看正在运行的进程,如果成功,在该目录下会产生run.log文件