首頁  >  問答  >  主體

ubutnu16.04 uWSGI配置问题?

在虚拟环境中安装完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


高洛峰高洛峰2902 天前690

全部回覆(1)我來回復

  • 三叔

    三叔2016-11-07 10:05:06

    表示只需要

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

    这样就可以了


    回覆
    0
  • 取消回覆