简体   繁体   English

uwsgi皇帝国防部不工作

[英]uwsgi emperor mod not working

when i start it without emperor it works: 当我没有皇帝启动它时,它的工作原理是:

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

But when i use emperor mode it freezes: 但是当我使用皇帝模式时,它会冻结:

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

And give such response: 并给出以下响应:

*** 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 ***

Thanks for your help. 谢谢你的帮助。

UPDATE. 更新。 Ignore my advice regarding master . 忽略我对master建议。 Doc says that emperor mode should not be used with master normally. Doc说,皇帝模式通常不应该与master使用。 http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#notes http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#notes

Try to run emperor with master process. 尝试通过主进程运行皇帝。 Add master = true to your ini file and run uwsgi as root. master = true添加到您的ini文件,然后以root身份运行uwsgi。 Workers will downgrade to non-priviledged user (if specified) 工作者将降级为非特权用户(如果指定)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM