无法运行`uwsgi --ini uwsgi.ini`,并且没有加载app的日志。进入完全动态模式

时间:2018-05-13 15:40:50

标签: python django uwsgi

我有0的配置文件,你可以看到下面的配置 我认为我的配置没有问题,但仍然无法运行uWSGI成功。

Math#multiplyExact

然后我运行uwsgi.ini。 在[uwsgi] chdir=/data/lll/repo/Qn uid=nobody gid=nobody module=Qn.wsgi:application socket=/data/lll/repo/Qn/uwsgi.sock master=true workers=5 pidfile=/data/lll/repo/Qn/uwsgi.pid vacuum=true thunder-lock=true enable-threads=true harakiri=30 post-buffering=4096 daemonize=/data/lll/repo/Qn/uwsgi.log

中获得波纹追溯
uwsgi --ini uwsgi.ini
似乎uWSGI无法启动。

我的uwsgi.log配置如下:

...
chdir() to /data/lll/repo/Qn
your processes number limit is 4096
your memory page size is 4096 bytes
detected max file descriptor number: 8192
lock engine: pthread robust mutexes
thunder lock: enabled
uwsgi socket 0 bound to UNIX address /data/lll/repo/Qn/uwsgi.sock fd 3
dropping root privileges after socket binding
dropping root privileges after plugin initialization
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 486672 bytes (475 KB) for 5 cores
*** Operational MODE: preforking ***
*** no app loaded. going in full dynamic mode ***
dropping root privileges after application loading
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 4004)
spawned uWSGI worker 1 (pid: 4005, cores: 1)
spawned uWSGI worker 2 (pid: 4006, cores: 1)
spawned uWSGI worker 3 (pid: 4007, cores: 1)
spawned uWSGI worker 4 (pid: 4008, cores: 1)
spawned uWSGI worker 5 (pid: 4009, cores: 1)

1 个答案:

答案 0 :(得分:0)

这篇文章已经存在了一段时间,所以我相信您已经找到了一种解决方法。但是看来您正在先做chdir=/data/lll/repo/Qn,然后再做module=Qn.wsgi:application。您在Qn存储库中是否有Qn模块?是/data/lll/repo/Qn/Qn.py还是/data/lll/repo/Qn/Qn/__init__.py