方法一:
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>
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>