uwsgi配置

  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

猜你喜欢

转载自www.cnblogs.com/1a2a/p/11448161.html
今日推荐