nohup 搭配 & 来不挂断地运行某条命令达到后台执行的效果,默认会在根目录生成一个
nohup.out 文件用来记录所有的 log 信息,也可以重定向到其他位置。
1 | $ nohup gunicorn run:app & |
重定向日志到制定文件
1 | $ nohup gunicorn run:app >nohup.log 2>&1 & |
最近热读
扫码关注公众号,或搜索公众号“温欣爸比”
及时获取我的最新文章
