Last active
July 12, 2017 08:08
-
-
Save taojy123/64b118fce5884da26d3d26fc42c6fedd to your computer and use it in GitHub Desktop.
django+nginx+uwsgi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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