https://serverfault.com/questions/775965/

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04
https://serverfault.com/questions/775965/wiring-uwsgi-to-work-with-django-and-nginx-on-ubuntu-16-04?newreg=b7bfd56d2a534ed1af2972cda6db537f

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

坑点:::::如果uwsgi运行不起来,可能是因为没有www-data组,groupadd www-data

project = firstsite
uid = cs
base = /home/%(uid)

chdir = %(base)/%(project)
home = %(base)/Env/%(project)
module = %(project).wsgi:application

master = true
processes = 5

socket = /run/uwsgi/%(project).sock
chown-socket = %(uid):www-data
chmod-socket = 666
vacuum = true

上面要是666才行。

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务