[关闭]
@breakerthb 2016-10-19T06:24:08.000000Z 字数 376 阅读 1168

uwsgi安装

Tools uwsgi


uwsgi : https://pypi.python.org/pypi/uWSGI

uwsgi参数详解:http://uwsgi-docs.readthedocs.org/en/latest/Options.html

pip 安装

$ sudo pip install uwsgi

查看版本

$ uwsgi --version

测试

新建文件

# test.py
def application(env, start_response):
    start_response('200 OK', [('Content-Type','text/html')])
    return "Hello World"

在终端输入

$ uwsgi --http :8001 --wsgi-file test.py

在浏览器中查看:http://127.0.0.1:8001

看到Hello World说明安装成功。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注