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