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