uwsgi no app loaded. going in full dynamic mode

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)
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值