gjack

在Linux中,可以使用nohup将脚本放置后台运行,如下:

nohup python myscript.py params1 > nohup.out 2>&1 & 
  • 使用-u参数,使得python不启用缓冲。
nohup python -u myscript.py params1 > nohup.out 2>&1 &

 

分类:

技术点:

相关文章:

  • 2021-12-18
  • 2021-10-03
  • 2021-12-25
  • 2021-12-07
  • 2022-12-23
  • 2022-02-07
  • 2021-12-10
猜你喜欢
  • 2021-12-28
  • 2021-12-24
  • 2021-12-06
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案