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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-02-07
  • 2021-08-02
猜你喜欢
  • 2021-09-24
  • 2021-05-27
  • 2021-11-12
  • 2021-11-02
  • 2021-08-28
  • 2021-11-11
相关资源
相似解决方案