uWSGI

uWSGI Setting

new a uWSGI ini file in your Django project directory

use http listen in line 6: http :8000

use socket as web port socket in line 7

use socket as socket file in line 8

chdir: your Django Project root directory

module: your {Django_Project_Name}.wsgi

buffer-size: allow your request buffer size

logoto: save your uwsgi file

master: enable master process(unknow, like loading balance)

vacuum: try to remove all of the generated file/sockets(like when restart will clear sock files)

static-map: 連結靜態檔案處理位置

processes: 同時processes 數

threads: 同時threads數

啟動指令

uwsgi --ini /data/migo/pandora/django/sirius/sirius_uwsgi.ini --chmod-socket=666

注意socket file 的權限必須用 --chmod-socket 這個指令,直接用chmod 去改不work

若單作API Service,可改為用http就可以不需要啟動nginx

results for ""

    No results matching ""