uwsgi选择使用的python版本(转载)

大概以下python

mkdir /data/uwsgipython2.7

cd /data/uwsgiui

wget http://projects.unbit.it/downloads/uwsgi-2.0.11.tar.gzget

tar zxvf uwsgi-2.0.11.tar.gzit

cd uwsgi-2.0.11编译

在 buildconf/core.ini 文件中添加以下thread

plugin_dir = /data/uwsgiuwsgi

bin_name = /usr/bin/uwsgiplugin

编译uwsgiwsgi

python uwsgiconfig.py --build core

编译 python2.7 版本的 plugins

python2.7 uwsgiconfig.py --plugin plugins/python core python27

uwsgi -d --emperor /data/www/uwsgi.ini --enable-threads

相关文章
相关标签/搜索