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

相關文章
相關標籤/搜索