配置文件config.ini
[uwsgi]
socket = 127.0.0.1:8001
# python module
module = blog:app
processes = 1 //处理器个数
threads = 2 //线程个数
master = true
home = venv //python 的位置,这里是virtualenv
pidfile=/var/run/uwsgi.pid // pidfile 便于停止进程
2017/10/3大约 2 分钟约 487 字