uWSGI使用gevent loop

命令行参数

uwsgi将gevent做为模块uwsgi -s 127.0.0.1:8080 --processes 4 --loop gevent --enable-threads --async 128 --disable-logging --wsgi-file test.pyuwsgi将gevent内置uwsgi --http :8080 --file test.py --gevent 2000 -l 1000 -p 1 -L

参数解释-L|–disable-logging

-p|–processes 工作进程 -p|–workers

-l|–listen set the socket listen queue size

   -s|--socket          bind to the specified UNIX/TCP socket using default protocol   -s|--uwsgi-socket          bind to the specified UNIX/TCP socket using uwsgi protocol--loop select the uWSGI loop engine   -T|--enable-threads          enable threads   --async          enable async mode with specified cores

安装

git clone  https://github.com/jbq/uwsgi.gitcd uwsgipython uwsgiconfig --plugin plugins/gevent

就会生成 gevent_plugin.so

uWSGI使用gevent loop

相关文章:

你感兴趣的文章:

标签云: