1、nohup 命令操作后台执行程序

后台启动

nohup python app.py params1 > nohup.out 2>&1 & 

查看后台进程启动

jobs -l

杀敌进程号

kill -9 进程号

  

 nohup.out 是输出的日志,就是python执行输出的结果

详细参考连接 :https://www.cnblogs.com/kex1n/p/8285343.html

相关文章:

猜你喜欢
相关资源
相似解决方案