ubutnu16.04 uWSGI配置问题?
高洛峰
高洛峰 2016-11-07 10:04:48
0
1
698

在虚拟环境中安装完pip install uwsgi
运行以下这个webapp.py程序

def application(environ, start_response):
    start_response('200 OK', 
    [('Content-Type', 'text/html')])    return '<b>Hello, World!</b>'

执行以下命令uswgi --http:9090 --wsgi-file webapp.py

出现以下错误:
`uwsgi: unrecognized option '--http:'
getopt_long() error

734154933-581f1531bc5f4_articlex.png


高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

répondre à tous(1)
三叔

表示只需要

uwsgi --http 9090 --wsgi-file webapp.py

这样就可以了


Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!