mar-heaven / mar-heaven.github.io

mar-heaven-github-io.vercel.app
0 stars 0 forks source link

ubuntu 部署 django2.0 + uwsgi + nginx - Ginta's blog #45

Open mar-heaven opened 1 year ago

mar-heaven commented 1 year ago

https://ginta.top/2019/11/26/ubuntu%20%E9%83%A8%E7%BD%B2%20django2.0%20+%20uwsgi%20+%20nginx/

django 默认的服务是单进程的,而且处理静态文件也比较慢,我们采用 django + uwsgi + nginx 来提高并发数的同时减少静态文件的访问时间。 nginx 安装nginxapt-get install nginx 进入 /etc/nginx 路径下可以看到两个文件夹,sites-available 和 sites-enabled,前者是网站的可用配置文件夹,后