linux 运行和关闭 后台python任务

目录

1、python在linux后台运行任务

2、查看python后台任务

3、关闭后台运行任务


1、python在linux后台运行任务

nohup python -u test.py > out.log 2>&1 &   ###test.py为要运行的程序 out.log是程序产生的日记

2、查看python后台任务

ps -ef | grep  python

3、关闭后台运行任务

kill -9 7079

猜你喜欢

转载自blog.csdn.net/weixin_46504244/article/details/121032071