当前位置: 首页 > 工具软件 > Full-Loaded > 使用案例 >

uwsgi no app loaded. going in full dynamic mode

庾远航
2023-12-01

uwsgi运行报错:

# uwsgi --ini uwsig.ini 
[uWSGI] getting INI configuration from uwsig.ini
*** Starting uWSGI 2.0.14 (64bit) on [Wed Jan  4 22:31:05 2017] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-4) on 05 October 2016 20:03:58
os: Linux-3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015
nodename: localhost.localdomain
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /root/developer/pywork/ivirtual
detected binary path: /usr/sbin/uwsgi
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** 
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 7293
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/ivirtual.sock fd 3
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 291072 bytes (284 KB) for 4 cores
*** Operational MODE: preforking ***
*** no app loaded. going in full dynamic mode ***

*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 11066, cores: 1)
spawned uWSGI worker 2 (pid: 11067, cores: 1)
spawned uWSGI worker 3 (pid: 11068, cores: 1)
spawned uWSGI worker 4 (pid: 11069, cores: 1)


这是yum install uwsgi引起的,和/sbin/uwsgi --ini uwsig.ini ,需要yum remove uwsgi,这样可以删除/sbin/uwsgi文件。


通过python install 安装后的可以正常运行。这时再yum install uwsgi,安装最新的2.0.14版本也可以运行了。默认的/sbin/uwsgi路径运行的uwsgi依然报错。

或者直接查看uwsgi的安装路径,whereis uwsgi ,通过指定的路径运行就不会和/sbin/uwsgi的路径的uwsgi混淆了。

# uwsgi --ini uwsig.ini 

[uWSGI] getting INI configuration from uwsig.ini
*** Starting uWSGI 2.0.12 (64bit) on [Wed Jan  4 19:32:30 2017] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-4) on 13 May 2016 16:16:39
os: Linux-3.10.0-229.11.1.el7.x86_64 #1 SMP Thu Aug 6 01:06:18 UTC 2015
nodename: localhost.localdomain
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /root/developer/pywork/ivirtual
detected binary path: /usr/bin/uwsgi
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** 
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 7293
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:5000 fd 3
spawned uWSGI http 1 (pid: 7968)
uwsgi socket 0 bound to UNIX address /tmp/ivirtual.sock fd 6
Python version: 2.7.5 (default, Sep 15 2016, 22:37:39)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
Python main interpreter initialized at 0xafd9d0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 291072 bytes (284 KB) for 4 cores
*** Operational MODE: preforking ***
added /root/developer/pywork/ivirtual/ to pythonpath.
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0xafd9d0 pid: 7967 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 7967, cores: 1)
spawned uWSGI worker 2 (pid: 7975, cores: 1)
spawned uWSGI worker 3 (pid: 7976, cores: 1)
spawned uWSGI worker 4 (pid: 7977, cores: 1)
 类似资料:

相关阅读

相关文章

相关问答