58

uwsgi: option is ambiguous: http

 5 years ago
source link: http://yongqing.is-programmer.com/posts/213814.html?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

从官网上下载的uwsgi包含所有的插件。其它来源的uwsgi可能被人改过了。例如,为了减小体积,会删除uwsgi不必要的插件。

环境

alpine中运行uwsgi

示例:启动uwsgi提供http访问接口,出现错误

#报错的原因就是这个uwsgi没有http插件
~ # uwsgi --http :9090  --plugins http,python3
[uWSGI] getting INI configuration from /app/uwsgi.ini
uwsgi: option is ambiguous: http
getopt_long() error

看看官网下载的uwsgi

reeMNve.png!web

解决办法

#查找
/app # apk search uwsgi |grep http
uwsgi-router_http-2.0.17-r0
uwsgi-http-2.0.17-r0

#安装
apk add uwsgi-http   uwsgi-router_http

来源

http://www.yongqingking.top/web/2018/11/25/uwsgi-lack-http.html

此生必看的科学实验-水知道答案

《了凡四训》详解之改过之法

印光大师十念法(胡小林主讲第1集)

精神病为什么治不好

百病之源


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK