Nginx & uWSGI
$cat nginx.conf
upstream login_transfer_sock { server unix:///scratch/cdctest/work/uwsgi/uwsgi.sock; } server { listen 80; server_name localhost; charset utf-8; client_max_body_size 1M; location / { include /usr/local/nginx/conf/uwsgi_params; uwsgi_pass login_transfer_sock; } }
$uwsgi config.ini
[uwsgi] master = true base = /scratch/cdctest/work/vbuild chdir = %(base) home = /scratch/cdctest/work/vbuild/python wsgi-file = views.py callable = app #protocol = http #socket = :5000 socket = /scratch/cdctest/work/uwsgi/uwsgi.sock pidfile = /scratch/cdctest/work/uwsgi/uwsgi.pid chmod-socket = 777 vacuum = true processes = 4 threads = 2 buffer-size = 32768 stats = 127.0.0.1:9191
浙公网安备 33010602011771号