09 2022 档案

摘要:1.安装 pip3 install gunicorn 2.配置文件 import multiprocessing # 并行工作进程数, int,cpu数量*2+1 推荐进程数 workers = multiprocessing.cpu_count() * 2 + 1 # 指定每个工作者的线程数 th 阅读全文
posted @ 2022-09-05 14:29 手可摘星辰。 阅读(120) 评论(0) 推荐(0) 编辑
摘要:1.安装uwsgi pip3 install uwsgi 2.Flask项目目录 flask_demo:项目目录。 uwsgi:用来存放和uwsgi相关的配置文件和日志文件。 venv:虚拟环境目录 test.py:Flask项目启动文件。 3.uwsgi配置文件 [uwsgi] ; 项目名 pro 阅读全文
posted @ 2022-09-03 15:43 手可摘星辰。 阅读(1566) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示