-
下载uwsgi
地址:https://projects.unbit.it/downloads/uwsgi-2.0.18.tar.gz
注:2.0.17.1以前的版本不支持Python3.7 -
tar -zxvf uwsgi-2.0.18.tar.gz
-
进入解压后的目录,make
-
创建一个目录并新建hello.py文件:
def application(env, start_response):
start_response(‘200 OK’, [(‘Content-Type’,‘text/html’)])
return [b"Hello World"]
在该目录输入:uwsgi --http 192.168.253.129:9090 --wsgi-file hello.py启动服务
在浏览器访问:http://192.168.253.129:9090/
页面显示 Hello World 即为安装成功
Linux安装uwsgi
最新推荐文章于 2024-06-05 10:31:32 发布