ubuntu 后台运行的几个方法

ubuntu 后台运行的几个方法

 

方法一:

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
喜欢就支持一下吧
点赞12 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容