[uwsgi] http = :9000 #the local unix socket file than commnuincate to Nginx #socket端口这个用作nginx与其通讯 socket = 127.0.0.1:8001 # the base directory (full path) #django项目根目录 chdir = /home/zhilei/helpdesk # Django's wsgi file wsgi-file = helpdesk/wsgi.py # maximum number of worker processes processes = 4 #thread numbers startched in each worker process threads = 2 #处理表态数据,映射 static-map=/static=/home/zhilei/helpdesk/static #monitor uwsgi status stats = 127.0.0.1:9191 # clear environment on exit vacuum = true
本文详细介绍了UWSGI的配置参数,包括HTTP监听地址、socket端口、项目根目录、WSGI文件路径、进程数、线程数、静态资源映射、状态监控等,为部署Django项目提供了具体指导。
1251

被折叠的 条评论
为什么被折叠?



