[英]uwsgi emperor mod not working
当我没有皇帝启动它时,它的工作原理是:
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 ***
谢谢你的帮助。
更新。 忽略我对master
建议。 Doc说,皇帝模式通常不应该与master
使用。 http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#notes
尝试通过主进程运行皇帝。 将master = true
添加到您的ini文件,然后以root身份运行uwsgi。 工作者将降级为非特权用户(如果指定)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.