centos7部署Django(nginx+uwsgi+python3+django) de uwsgi.ini file

[uwsgi]
socket    = 127.0.0.1:9091
chdir     = /root/myproject
module    = myproject.wsgi
processes = 4
listen    = 100
# main process
master    = true
# 非多站模式时 vhost = true 和 no-site = true 需要注释掉,否则后续 nginx 配置文>件中设置的入口文件则不生效,服务器会回应 Internal Server error:
#vhost     = true               //many-sites model
#no-site   = true               //多站模式时不设置入口模块和文件
# numbers of son process
workers   = 2
 reload-mercy   = 10
# clean the files when exit or restart
vacuum    = true
max-requests   = 1000
limit-as       = 512
buffer-size    = 30000
# pid文件,用于下面的脚本启动、停止该进程
pidfile   = /var/run/uwsgi9090.pid
daemonize = /website/uwsgi9090.log

 

你可能感兴趣的:(centos7部署Django(nginx+uwsgi+python3+django) de uwsgi.ini file)