Skip to content

Instantly share code, notes, and snippets.

@taojy123
Last active July 12, 2017 08:08
django+nginx+uwsgi
server {
listen 8000;
server_name 127.0.0.1;
location /static/ {
alias /root/SWE/static/;
autoindex on;
}
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
}
}
#nginx
#nginx -s reload
#service nginx restart
[uwsgi]
chdir=/root/SWE/
wsgi-file=/root/SWE/swegui/wsgi.py
master=True
http-socket=0.0.0.0:3031
processes=2
threads=2
daemonize=/var/log/uwsgi/swe.log
pidfile=/tmp/swe.pid
stats=0.0.0.0:3032
#uwsgi uwsgi.ini
#uwsgi --reload /tmp/swe.pid
#ps aux | grep uwsgi
#killall uwsgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment