Home > Q&A > body text
在虚拟环境中安装完pip install uwsgi运行以下这个webapp.py程序
1
2
3
def application(environ, start_response):
start_response('200 OK',
start_response(
'200 OK'
,
[('Content-Type', 'text/html')]) return '<b>Hello, World!</b>'
[(
'Content-Type'
'text/html'
)])
return
'<b>Hello, World!</b>'
执行以下命令uswgi --http:9090 --wsgi-file webapp.py
出现以下错误:`uwsgi: unrecognized option '--http:'getopt_long() error
三叔2016-11-07 10:05:06
表示只需要
uwsgi --http 9090 --wsgi-file webapp.py
uwsgi
-
http
9090
wsgi
file
webapp.py
这样就可以了