【linux】在关闭终端的情况下,训练模型

当我们需要关闭终端,后台训练模型时:

nohup python train.py & # 后台运行,直到训练结束

实时查看:

tail -f nohup.out

查看python进程

ps -ef|grep python

在这里插入图片描述

kill -9 id # 杀死进程
killall -9 python # 杀死所有python进程

参考

https://blog.csdn.net/xuqimm/article/details/78092002

猜你喜欢

转载自blog.csdn.net/AugustMe/article/details/117227285
今日推荐