方法一:
https://blog.csdn.net/weixin_37887248/article/details/80727627
nohup python test.py &
方法二(推荐)
利用screen 构建一个可以后台运行的窗口,还可以找回的。
screen -S <window_name>
进入后
python test.py
ctrl a+d # 退出窗口
下次恢复窗口
screen -r <window_name>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容