mac下安装nginx+uwsgi+webpy出错解决

在Mac环境下,配置nginx+uwsgi+webpy时遇到错误,发现uwsgi版本2.0.11.1不支持某些参数。通过运行uwsgi不带特定参数启动,出现警告并提示未加载请求插件。解决方案是使用pip安装uwsgi,这将同时安装python插件,之后正确启动uwsgi。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值