06 2017 档案

摘要:部署模式 flask + Gunicorn + nginx 为什么要用Gunicorn + nginx ? 请看知乎大神们的回答:https://www.zhihu.com/question/38528616 场景 有一项业务,前端给后端发送ajax请求后,后端需要执行大约4分钟的时间才会给前端返回 阅读全文
posted @ 2017-06-30 11:16 张文强Terry 阅读(14030) 评论(0) 推荐(0)
摘要:在工作中我们经常会写一个python脚本,然后想通过定时任务去执行,这时我们会想到crontab. 通过 crontab -e去设置crontab 例如:0 0 * * * python /data/webapps/cmdb.import.api/routine_analysis_halog.py 阅读全文
posted @ 2017-06-08 09:58 张文强Terry 阅读(9932) 评论(0) 推荐(0)