11.异常 *** Starting uWSGI 2.0.12 (64bit) on [Tue Jun 1416:36:202016] *** compiled with version: 4.4.720120313 (Red Hat 4.4.7-16) on 02 January 201619:53:13 os: Linux-2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 1018:01:38 UTC 2015 nodename: vlnx160170.fsceshi.com machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/wans/FSPythonWSGIProcess writing pidfile to /tmp/FsPythonWSGIProcess.pid detected binary path: /usr/sbin/uwsgi your processes number limit is1024 your memory page size is4096 bytes detected max file descriptor number: 60000 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 4 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is60 seconds mapped 1476277 bytes (1441 KB) for10 cores *** Operational MODE: preforking *** *** no app loaded. going in full dynamic mode ***
关闭nginx ,启动uwsgi后再启动nginx
优化点: 1.调整nginx worker_processes 4; worker_cpu_affinity 1000010000100001; 2.#cluster upstream backend{ server unix:///tmp/uwsgi.sock; server unix:///tmp/uwsgi1.sock; server unix:///tmp/uwsgi2.sock; server unix:///tmp/uwsgi3.sock; }
location / { include uwsgi_params; uwsgi_pass backend; } 问题总结: 1.yum安装遇到如下类似问题: yum install uwsgi Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.btte.net * updates: mirrors.163.com No package uwsgi available. Error: Nothing to do 解决方案,添加epl至yum的源即可: yum install http://mirrors.isu.net.sa/pub/fedora/fedora-epel/7/x86_64/e/epel-release-7-6.noarch.rpm 参考文档:https://fedoraproject.org/wiki/EPEL/zh-cn