随笔分类 -  uwsgi

uwsgi的使用示例+django(监听队列长度)
摘要:-https://docs.djangoproject.com/zh-hans/3.2/howto/deployment/wsgi/uwsgi/ https://uwsgi-docs-cn.readthedocs.io/zh_CN/latest/WSGIquickstart.html 监听队列最大长 阅读全文

posted @ 2021-11-05 11:03 进击的davis 阅读(342) 评论(0) 推荐(0)

线上业务django-uwsgi启动的服务日志错乱缺失
摘要:参考: https://www.coder.work/article/378920 >>> uwsgi多进程托管日志错乱问题 多进程不安全导致 https://stackoverflow.com/questions/9206802/some-djangos-logs-are-missing-when 阅读全文

posted @ 2021-11-04 18:33 进击的davis 阅读(408) 评论(0) 推荐(0)

uwsgi运行django应用是报错no app loaded. going in full dynamic mode
摘要:今天测试uwsgi运行uwsgi.ini的时候,报错: 网上搜了一天,大都不知原因,还是google吧:github问题解决 说说问题原因吧: 根据uwsgi的提示,应该是wsgi.py的application导入问题导致,根据报错,可以尝试用python 导入试试 python -c "from 阅读全文

posted @ 2021-03-03 19:08 进击的davis 阅读(1453) 评论(0) 推荐(0)

uwsgi启动django应用 https访问设置问题解决 & uwsgi: unrecognized option '--https' | ubuntu20.04
摘要:一般情况下,用uwsgi启动django项目,我们很多用http启动服务,也存在用https启动服务,本文介绍uwsgi设置https启动django项目。 总体来说,分以下几步: 生成 key & crt 文件 启动设置 ##1.生成key和crt文件 了解内容 # openssl genrsa 阅读全文

posted @ 2021-02-19 16:10 进击的davis 阅读(2045) 评论(0) 推荐(0)

uwsgi的 https 支持
摘要:HTTPS支持 (v>1.3) 使用 https ,, 选项。这个选项可能会被多次指定。首先使用OpenSSL工具生成你服务器的密钥,证书签名请求,以及自注册证书: 注解:你会想要一个用于生产的真正的SSL证书的。 openssl genrsa -out foobar.key 2048 openss 阅读全文

posted @ 2021-02-18 14:21 进击的davis 阅读(1288) 评论(0) 推荐(0)

导航