search

Home  >  Q&A  >  body text

python - 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
`

PHPzPHPz2911 days ago419

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-18 09:55:00

    means only

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

    That’s it

    reply
    0
  • Cancelreply