原文地址:开源中国技术翻译
遇到的问题
1.安装mysql-python 出错:mysql_config not found
解决:http://zhoujianghai.iteye.com/blog/1520666
2.安装PIL 出错:No distributions at all found for PIL
解决:Pillow代替PIL
3.安装xlml 出错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
4.配置完成后一直找不到程序入口,检查发现uwsgi的配置文件需要和程序入口在同一目录里面,贴上我自己的配置文件和应用结构,方便以后查验。
[uwsgi]
#application's base folder
base = /var/www
#python module to import
sep = run
module = %(sep)
home = %(base)/flask
pythonpath = %(base)
#socket file's location
socket = /var/www/XBSEP/Core/%n.sock
#permissions for the socket file
chmod-socket = 666
#the variable that holds a flask application inside the module imported at line #6
callable = sep
#location of log files
logto = /var/log/uwsgi/%n.log
5.每次重启uwsgi时都需要先删除run.pyc才能正常启动。否则依旧会提示no module named run,现在还未找到解决方法。
6.IE缓存非常严重!