Chaim:web Chaim$ uwsgi --version
2.0.11.1
这个版本的uwsgi不支持-w参数,也不支持-wsgi-file参数,估计是只用配置文件中的了。
Chaim:nginx Chaim$ uwsgi -s 127.0.0.1:9000
*** Starting uWSGI 2.0.11.1 (64bit) on [Wed Aug 19 18:28:07 2015] ***
compiled with version: 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53) on 19 August 2015 18:01:15
os: Darwin-14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
nodename: Chaim.local
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /usr/local/etc/nginx
detected binary path: /usr/local/Cellar/uwsgi/2.0.11.1/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 709
your memory page size is 4096 bytes
detected max file descriptor number: 256
lock engine: OSX spinlocks
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:9000 fd 3
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72760 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!
no request plugin is loaded, you will not be able to manage requests.
you may need to install the package for your language of choice, or simply load it with --plugin.
!!!!!!!!!!! END OF WARNING !!!!!!!!!!
spawned uWSGI worker 1 (and the only) (pid: 24249, cores: 1)
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
又出-- unavailable modifier requested: 0 --这个错误,查了下可能是没有装uwsgi-plugin-python,可以用pip安装uwsgi:
Chaim:web Chaim$ sudo pip install uwsgi
的确这样就同时安装plugin了,启用uwsgi时如下:
uwsgi --socket :9001 --plugins=python