uwsgi皇帝模式不起作用
当我不使用“emperor”模式启动时,它可以正常工作:
uwsgi --ini /etc/uwsgi/vassals/uwsgi.conf --uid books --gid books
但是当我使用“emperor”模式时,它就卡住了:
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
更新:请忽略我之前关于 master
的建议。文档中提到,通常情况下不应该将皇帝模式与 master
一起使用。你可以查看这个链接了解更多信息:http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#notes
如果你想尝试在使用主进程的情况下运行皇帝模式,可以在你的 ini 文件中添加 master = true
,然后以 root 用户身份运行 uwsgi。这样,工作进程会降级为非特权用户(如果你指定了的话)。