首页 > 其他 > 详细

uwsgi配置

时间:2019-09-02 18:38:58      阅读:66      评论:0      收藏:0      [点我收藏+]
  1 [uwsgi]
  2 chdir=/usr/local/xx/xx_ader/service    # 项目文件路径
  3 wsgi-file=run.py    # 启动文件
  4 socket=/tmp/sock/xx-pacs.sock    # 自己配的和nginx对应
  5 chmod-socket=666
  6 callable=app    # uwsgi调用的python应用实例名称,Flask里默认是app,根据具体项目代码实例命名来设置
  7 master=true
  8 workers=10
  9 threads=2
 10 vacuum=true
 11 thunder-lock=true
 12 max-requests=2000
 13 enable-threads=true
 14 harakiri=120
 15 post-buffering=1310720
 16 post-buffering-busize=1310720
 17 buffer-size=1310720
 18 uid=root
 19 logto=/mnt/logs/xx1/xxx-uwsgi.log

 

uwsgi配置

原文:https://www.cnblogs.com/1a2a/p/11448161.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!