uwsgi emperor mod不工作

时间:2014-10-24 14:49:54

标签: python virtualenv uwsgi

当我开始没有皇帝的时候它起作用:

uwsgi --ini /etc/uwsgi/vassals/uwsgi.conf --uid books --gid books

但是当我使用皇帝模式时,它会冻结:

uwsgi --emperor /etc/uwsgi/vassals  --uid books --gid books

并给出这样的回应:

*** Starting uWSGI 2.0.1 (64bit) on [Fri Oct 24 10:47:46 2014] ***
compiled with version: 4.8.2 20140120 (Red Hat 4.8.2-16) on 24 October 2014 10:36:47
os: Linux-3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014
nodename: essenly.com
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /etc/uwsgi/vassals
detected binary path: /usr/bin/uwsgi
setgid() to 1000
setuid() to 1000
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 3839
your memory page size is 4096 bytes
detected max file descriptor number: 1024
*** starting uWSGI Emperor ***

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

更新。忽略我对master的建议。 Doc说皇帝模式通常不应该与master一起使用。 http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#notes

尝试使用主进程运行emperor。将master = true添加到您的ini文件并以root身份运行uwsgi。工人将降级为非特权用户(如果指定)