高效能框架gevent和gunicorn在web上的應用及效能測試
阿新 • • 發佈:2019-01-28
1 |
gunicorn code:application
|
1 2 |
gunicorn -b 10.2 . 20.66 : 8080 code:application
#from http: //rfyiamcool.blog.51cto.com
|
1 |
gunicorn -w 8 code:application
|
1 2 3 4 5 6 7 8 9 10 11 |
[[email protected] 66 tmp]# cat gun.conf
import os
bind = '127.0.0.1:5000'
workers = 4
backlog = 2048
worker_class = "sync"
debug = True
proc_name = 'gunicorn.proc'
pidfile = '/tmp/gunicorn.pid'
logfile = '/var/log/gunicorn/debug.log'
loglevel = 'debug'
|