想要程序在后台长久运行有多种方法:
1、使用 nohup + & 的方法
nohup 使用方法如下:
nohup COMMAND > stdout.log 2> stderr.log &
上述命令,会把程序的标准输出
2023-11-09