我有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)
答案 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
?