首页 > 编程语言 > 详细

Linux中使用nohup挂载Python程序

时间:2019-04-27 14:05:17      阅读:175      评论:0      收藏:0      [点我收藏+]

#加-u 关闭python输出的缓冲
nohup python -u hello.py &

tail nohup.out
#-f tail不停的实时输出
tail -f nohup.out
```

```

nohup python myfile.py > myout.out 2>&1 &

 

#nohup的重定向输出到 myout.out

$ nohup python -u myfile.py > myout.out  &

 

#tail -f 不停的实时输出
$ tail -f myout.out

 

#停止运行程序

kill -9  PID

 

Linux中使用nohup挂载Python程序

原文:https://www.cnblogs.com/wxzbk/p/10778449.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!