uwsgi + webpy 部署教程

uwsgi安装: 

yum install uwsgi-plugin-python

INI示例:

[uwsgi]
http-socket=:9090
plugin=python
wsgi-file=/home/fr-renjie.wei/selfquerydlk/index_wsgi.py
threads=2
processes=4
master=True
uid=linuxusername
route = /static/(.*)\.png static:/home/fr-renjie.wei/selfquerydlk/static/$1.png

route就是对静态文件的指向。

 

守护进程运行:

uwsgi -d --ini config.ini

 

web.py侧:

app = web.application(urls, globals()).wsgifunc()

 

你可能感兴趣的:(Python)