安装uwsgi时报错
接着上一个问题pip install python库报错,接着往下操作,问题也TM随之而来了。。。
CentOS 6.5
Python 2.6
pip 7.0.1
uwsgi 2.0.10
这里有个问题,安装uwsgi时,参照了官网 ,
然后,我就安装uwsgi,
pip install uwsgi
错误来了,是Failed building wheel for uwsgi,难道又是哪个库没装?求指导!
然而这个错误似乎并没有什么卵用,我执行命令
uwsgi prod.ini
prod.ini
[uwsgi]
http-socket = 0.0.0.0:8080
chdir = /root/yigo_runtime
env = DJANGO_SETTINGS_MODULE=yigo_runtime.settings
static-map = /static=/root/yigo_runtime/static
module = django.core.handlers.wsgi:WSGIHandler()
processes = 4
threads = 2
stats = 0.0.0.0:9090
并没有报错
[uWSGI] getting INI configuration from prod.ini
[uwsgi-static] added mapping for /static => /root/yigo_runtime/app/static
*** Starting uWSGI 2.0.10 (64bit) on [Thu May 28 23:50:17 2015] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-11) on 28 May 2015 23:49:15
os: Linux-2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013
nodename: localhost.localdomain
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 16
current working directory: /root/yigo_runtime
detected binary path: /usr/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /root/yigo_runtime/app
chdir(): No such file or directory [core/uwsgi.c line 2556]
[root@localhost yigo_runtime]# vim prod.ini
[root@localhost yigo_runtime]# uwsgi prod.ini
[uWSGI] getting INI configuration from prod.ini
[uwsgi-static] added mapping for /static => /root/yigo_runtime/static
*** Starting uWSGI 2.0.10 (64bit) on [Thu May 28 23:51:22 2015] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-11) on 28 May 2015 23:49:15
os: Linux-2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013
nodename: localhost.localdomain
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 16
current working directory: /root/yigo_runtime
detected binary path: /usr/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /root/yigo_runtime
your processes number limit is 272755
your memory page size is 4096 bytes
detected max file descriptor number: 1024
building mime-types dictionary from file /etc/mime.types...883 entry found
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 0.0.0.0:8080 fd 3
Python version: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
Python main interpreter initialized at 0x21c6cf0
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 415360 bytes (405 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x21c6cf0 pid: 81087 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 81087)
spawned uWSGI worker 1 (pid: 81110, cores: 2)
spawned uWSGI worker 2 (pid: 81111, cores: 2)
spawned uWSGI worker 3 (pid: 81113, cores: 2)
spawned uWSGI worker 4 (pid: 81114, cores: 2)
*** Stats server enabled on 0.0.0.0:9090 fd: 15 ***
nginx (我是到nginx官网看文档,写了个nginx.repo然后执行yum install nginx安装的,我也不知道什么版本,次奥)
求真心人 ,给我指点下迷津,为何会Failed building wheel for uwsgi
相关阅读:
在页面中,除了xmp,textarea以及js转义外,还有什么办法可以让html标签在不被浏览器解析而正常显示呢?
webpack 热加载,更改局部文件会整体编译一次?
eclipse jsp 注释问题?
手册中语法说明的方括号怎么理解?
PHP一个数组的排序的问题
用 Java 读取 PDF 遇到中文标签该怎么处理
MyEclipse CSS智能提示自动弹出怎么设置?
怎么模拟IP
babel 能够在webstorm下设置 High compliancy模式吗?
工程打包 jar
Python的class中的参数的用法问题
将CAS 服务端工程 部署到tocmat7 ,启动时报错。
如何拥有基于各项Google服务的工作流,生活流?
ArchLinux 在 vmvare 下挂载U盘
新手:pycharm使用创建directory和Python package的区别??
mac 下sudo 命令无效
shell 问题
如何实现div串的渐显渐隐?
linux下挂载不成功
使用Linux跑脚本,等待时按键盘显示内容的一个问题