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