nohup运行程序

nohup python trainamp.py后端运行程序。

ps -ef|grep python查看python的进程。

kill -9 进程id

1.前台实时查看nohub.out文件内容:
tail -f nohup.out

2.根据关键字查看
tail -f nohup.out |grep “关键字”

3.输出文件最后500行
tail -n 500 nohup.out

posted @ 2022-11-29 20:18  祥瑞哈哈哈  阅读(59)  评论(0)    收藏  举报