unavailable modifier requested: 0

环境: nginx+uwsgi+django

*** Starting uWSGI 2.0.16 (64bit) on [Wed Jun 20 13:46:49 2018] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-18) on 13 February 2018 18:24:33
os: Linux-2.6.32-642.15.1.el6.x86_64 #1 SMP Fri Feb 24 14:31:22 UTC 2017
nodename: prism-monitor-online001-jylt.qiyi.virtual
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /data/app/hcdnstatistics
writing pidfile to /data/app/hcdnstatistics/run/uwsgi.pid
detected binary path: /usr/sbin/uwsgi
dropping root privileges as early as possible
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /data/app/hcdnstatistics/
your processes number limit is 128326
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
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: enabled
uwsgi socket 0 bound to UNIX address /data/app/hcdnstatistics/run/uwsgi.sock fd 6
dropping root privileges after socket binding
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
dropping root privileges after plugin initialization
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your server socket listen backlog is limited to 300 connections
your mercy for graceful operations on workers is 60 seconds
mapped 2284103 bytes (2230 KB) for 16 cores
*** Operational MODE: preforking ***
*** no app loaded. going in full dynamic mode ***
dropping root privileges after application loading
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 979)
spawned uWSGI worker 1 (pid: 980, cores: 1)
spawned uWSGI worker 2 (pid: 981, cores: 1)
spawned uWSGI worker 3 (pid: 982, cores: 1)
spawned uWSGI worker 4 (pid: 983, cores: 1)
spawned uWSGI worker 5 (pid: 984, cores: 1)
spawned uWSGI worker 6 (pid: 985, cores: 1)
spawned uWSGI worker 7 (pid: 986, cores: 1)
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --

  

原因

uwsgi 启动时,找不到正确的python引起。

原来是机器上原来有一个默认的uwsgi 

root@standby.me [14:10:38]$ uwsgi --version
2.0.16
root@standby.me [14:10:45]$ which uwsgi
/usr/sbin/uwsgi
root@standby.me [14:10:49]$
root@standby.me [14:10:34]$ /usr/local/python2.7/bin/uwsgi --version
2.0.17
root@standby.me [14:10:45]$

原来启动是:

killall -9 uwsgi && uwsgi --ini /data/app/hcdnstatistics/run/uwsgi.ini

改为正确的uwsgi即可

/usr/local/python2.7/bin/uwsgi --ini /data/app/hcdnstatistics/run/uwsgi.ini

  

参考:Django uwsgi 启动问题

django生产环境启动问题的更多相关文章

  1. 从零开始部署Django生产环境(适用:《跟老齐学Python Django实战》)

    <跟老齐学Python Django实战>作为市面上少有的Django通俗实战书籍,给了我学习Django很大的帮助.作为一名新入门的菜鸟,全书我重复练习了至少三遍,每次都有新的收获. 前 ...

  2. 7. 单机版Redis的安装以及Redis生产环境启动方案

    安装单机版redis redis的生产环境启动方案redis cli的使用 1. 安装单机版redis 大家可以自己去官网下载,当然也可以用课程提供的压缩包 wget http://downloads ...

  3. django生产环境部署

    测试环境:linux centos7下 1.安装uwsgi python3下安装: pip3 install uwsgi python2下安装: pip install uwsgi 如果是系统自带的p ...

  4. django生产环境中部署

    https://www.cnblogs.com/chenice/p/6921727.html 本节内容 uwsgi 介绍 uwsgi安装使用 nginx安装配置 django with nginx 如 ...

  5. 设置Django生产环境系统重启后的自动启动项

    前面,作者已经介绍了把Django部署到生产环境中的主要方法,现在我们来看一下如何设置项目开机启动. 在把Django项目部署到生产环境中时,我们前面使用安装包和源码安装了Nginx.uwsgi.re ...

  6. django 生产环境部署手册

    Django 是 python 的 web 框架,以下是其部署到生产环境的详细步骤,包含 Apache 和 nginx 版本. 部署环境 操作系统:centeros7.3 数据库:MySQL5.6.5 ...

  7. django 生产环境部署建议

    参考django官方建议 一种优秀的作法是使用前缀/ws/来区分WebSocket连接和普通HTTP连接,以便修改配置后,使Channels更容易部署到生产环境中. 特别是对于大型站点,可以配置像ng ...

  8. centos7.4+mysql5.6+virtualenv+python3.6+nginx+uwsgi+django生产环境搭建

    一 更新yum # yum update 二 安装gcc  lrzsz软件 # yum install gcc 用来编译python3.6源码 # yum install lrzsz 用来上传文件 三 ...

  9. uwsgi+nginx+django生产环境部署

    1.升级python到2.7版本 2.安装uwsgi 出现uwsgi未找到 yum groupinstall "Development tools"yum install zlib ...

随机推荐

  1. windows 服务器同步互联网时间

    @echo off ::netsh ipsec static set policy name=7road assign=n net time /setsntp:pool.ntp.org net sto ...

  2. sg函数小结

    sg函数小结 sg函数是处理博弈问题的重要工具. 我们知道sg(x)=mex{sg(j)|x能到达状态j} sg(x)=0时代表后手赢,否则先手赢. 对于一个问题,如果某些子问题是相互独立的,我们就可 ...

  3. 自学Python4.9-生成器举例

    自学Python之路-Python基础+模块+面向对象自学Python之路-Python网络编程自学Python之路-Python并发编程+数据库+前端自学Python之路-django 自学Pyth ...

  4. android ViewStub简单介绍

    ViewStub是一种非常灵活的视图,主要用于布局资源的实时加载. ViewStub 的继承类关系如下: public final class ViewStubextends View java.la ...

  5. 【CF526G】Spiders Evil Plan(贪心)

    [CF526G]Spiders Evil Plan(贪心) 题面 洛谷 CodeForces 给定一棵树,要求选择\(y\)条链,满足被链覆盖的所有点在树上联通,且\(x\)必定在联通块中. 对于每次 ...

  6. LVS负载均衡集群(DR)

    -----构建DR模式的LVS群集----- --client---------------------LVS------------------------WEB1----------------- ...

  7. thinkphp5 上传服务器后 Access denied

    服务器报 Access denied,要么报 No input files,但是在网上查了查说是将 PHP 的cgi.fix_pathinfo 改成 1 即可,但是改成 1 显然是有解析漏洞的,尝试寻 ...

  8. WinterAndSnowmen

    https://vjudge.net/problem/TopCoder-12891 暴力想法是:dp[i][s1][s2]前i个,第一个集合xor是s1,第二个集合xor是s2方案数O(n^3) 有x ...

  9. chip

    1.芯片(chip.pas/cpp) [问题描述] 企鹅集成电路公司生产了一种大小为 2×3的芯片.每块芯片是从一块大小为N×M的硅片上切下来的,但由于原材料纯度问题,因而有若干的单位正方形并不能作为 ...

  10. A1017. Queueing at Bank

    Suppose a bank has K windows open for service. There is a yellow line in front of the windows which ...