Ubuntu 安装uwsgi

2017/12/07 posted in  Linux

先源码安装python3.6(记得先用apt-get 安装好一些系统库zlib_dev,openssl_dev)
然后利用pip3 安装uwsgi

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
tar -xvf Python-3.6.3.tar.xz
cd Python-3.6.3/

apt-get install zlib1g-dev
apt-get install libssl-dev
apt-get install sqlite3


./configure --enable-loadable-sqlite-extensions

make && sudo make install


pip3 install uwsgi

uwsgi -i /data/web/xxxx.ini

uwsgi 配置侦测文件改动自动自动重启,在ini中加入

py-autoreload = 1