nginx+uwsgi部署django应用 2016-05-17 0.安装uwsgi1pip install uwsgi 1.配置uwsgi这里写到ini文件里面去。 123456789[uwsgi]chdir=/opt/zm_cmdb/zm_cmdbmodule=zm_cmdb.wsgi:applicationmaster=Truepidfile=/tmp/project-master.pidvacuum=Truemax-requests=5000daemonize=/tmp/zm_cmdb.logsocket=/tmp/uwsgi.sock 2.nginx配置123456789101112131415server { listen 80; server_name localhost; access_log /var/log/aca/access_log; access_log /var/log/aca/error_log; location /static/ { alias /opt/zm_cmdb/zm_cmdb/static/; } location / { uwsgi_pass unix:/tmp/uwsgi.sock; include uwsgi_params; }} django static + apache mod_wsgi部署 django 发送邮件