linux 安装 pyuthon

安装   pip install gunicorn

manage.py 文件

from app import create_app

app = create_app()

if __name__ == '__main__':
app.run()

运行命令

gunicorn -D -b 0.0.0.0:12100 manage:app

-D 后台运行

gunicorn --access-logfile access.log --error-logfile error.log -D -b :12100 manage:app

access日志

错误日志

gunicorn --timeout 20 --access-logfile access.log --error-logfile error.log -D -b :12100 manage:app


官网

http://docs.gunicorn.org/en/stable/run.html

https://www.jianshu.com/p/260f18aa5462

最新文章

  1. 将Java应用程序打包成可执行的Jar包
  2. SBT 构建scala eclipse开发
  3. 无图片,用css border实现尖三角
  4. UE 使用技巧
  5. HTML5 面试中最常问到的 10 个问题
  6. iOS开发--系统通讯录的访问与添加联系人
  7. js设置元素readonly属性注意事项
  8. python学习之路四(类和对象1)
  9. 为MySQL选择合适的备份方式[转]
  10. JetBrains Rider 破解 (ideaIU等等开发工具都通用)2018-02-27
  11. MySQL入门(参考官网)
  12. Azure CosmosDB (9) Unique Key Constraints
  13. AIOps背景/所应具备技术能力分析(上)
  14. Socket构造但不连接
  15. 关于Java源文件中public类的问题
  16. How many zero's and how many digits ? UVA - 10061
  17. Anroid 搭建Maven私服(Android Studio)
  18. Fixed-point multiplication (C166 A*B/B)
  19. jenkins部署配置
  20. python __dict__

热门文章

  1. SocLib能耗评估
  2. QueueUtil
  3. GUI的最终选择 Tkinter(五):Text用法
  4. ProtocBuffer安装
  5. Storm概念学习系列之Stream消息流 和 Stream Grouping 消息流组
  6. webservice初识,SOAP1.1版本
  7. Spring事务管理的xml方式
  8. 用汇编实现add函数
  9. css相关知识
  10. 使用Quartz任务调用的时候报错Based on configured schedule, the given trigger will never fire.