nginx+uwsgi部署django应用
2016-05-17 14:05
756 查看
0.安装uwsgi
pip install uwsgi
1.配置uwsgi
这里写到ini文件里面去。[uwsgi] chdir=/opt/zm_cmdb/zm_cmdb module=zm_cmdb.wsgi:application master=True pidfile=/tmp/project-master.pid vacuum=True max-requests=5000 daemonize=/tmp/zm_cmdb.log socket=/tmp/uwsgi.sock
2.nginx配置
server { 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; } }
相关文章推荐
- Nginx配置文件nginx.conf中文详解(总结)
- 利用 NGINX 最大化 Python 性能,第二部分:负载均衡和监控
- nginx 网站目录重写
- 利用 NGINX 最大化 Python 性能,第二部分:负载均衡和监控
- 使用 NGINX 进行微程序缓存的好处
- 使用 NGINX 进行微程序缓存的好处
- Nginx/Apache日志分析脚本
- 获取使用nginx代理后的真实IP地址
- 苹果下如果安装nginx,给nginx安装markdown第三方插件
- Nginx之代理配置以及负载均衡
- CodeIgniter3.0+Nginx的伪静态配置
- nginx File not found 错误(转) 404
- nginx 匹配.zip .apk 结尾的文件 直接下载
- Windows下Nginx初入门
- ThinkPHP3.2.3+Nginx的伪静态配置
- nginx常用命令
- windows环境下使用nginx
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- Nginx+php-fpm 502 504问题
- 配置Nginx支持pathinfo模式