django生产环境启动问题
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生产环境启动问题的更多相关文章
- 从零开始部署Django生产环境(适用:《跟老齐学Python Django实战》)
<跟老齐学Python Django实战>作为市面上少有的Django通俗实战书籍,给了我学习Django很大的帮助.作为一名新入门的菜鸟,全书我重复练习了至少三遍,每次都有新的收获. 前 ...
- 7. 单机版Redis的安装以及Redis生产环境启动方案
安装单机版redis redis的生产环境启动方案redis cli的使用 1. 安装单机版redis 大家可以自己去官网下载,当然也可以用课程提供的压缩包 wget http://downloads ...
- django生产环境部署
测试环境:linux centos7下 1.安装uwsgi python3下安装: pip3 install uwsgi python2下安装: pip install uwsgi 如果是系统自带的p ...
- django生产环境中部署
https://www.cnblogs.com/chenice/p/6921727.html 本节内容 uwsgi 介绍 uwsgi安装使用 nginx安装配置 django with nginx 如 ...
- 设置Django生产环境系统重启后的自动启动项
前面,作者已经介绍了把Django部署到生产环境中的主要方法,现在我们来看一下如何设置项目开机启动. 在把Django项目部署到生产环境中时,我们前面使用安装包和源码安装了Nginx.uwsgi.re ...
- django 生产环境部署手册
Django 是 python 的 web 框架,以下是其部署到生产环境的详细步骤,包含 Apache 和 nginx 版本. 部署环境 操作系统:centeros7.3 数据库:MySQL5.6.5 ...
- django 生产环境部署建议
参考django官方建议 一种优秀的作法是使用前缀/ws/来区分WebSocket连接和普通HTTP连接,以便修改配置后,使Channels更容易部署到生产环境中. 特别是对于大型站点,可以配置像ng ...
- centos7.4+mysql5.6+virtualenv+python3.6+nginx+uwsgi+django生产环境搭建
一 更新yum # yum update 二 安装gcc lrzsz软件 # yum install gcc 用来编译python3.6源码 # yum install lrzsz 用来上传文件 三 ...
- uwsgi+nginx+django生产环境部署
1.升级python到2.7版本 2.安装uwsgi 出现uwsgi未找到 yum groupinstall "Development tools"yum install zlib ...
随机推荐
- 前后端分离之vue2.0+webpack2 实战项目 -- html模板拼接
对于前后端分离,如何把一个页面的公共部分比如head, header, footer, content等组合成一个完整的html 是一个值得考虑的地方. 对于php,我们可以利用include加载其他 ...
- expect 自动化控制命令
expect 的核心是 spawn expect send set spawn 调用要执行的命令expect 等待命令提示信息的出现,也就是捕捉用户输入的提示:send 发送需要交互的值,替代了用户手 ...
- debian源
修改debian9 stretch源 修改配置文件/etc/apt/sources.list 修改成163源: deb http://mirrors.163.com/debian/ stretch m ...
- Postman的一个使用技巧----设置环境变量
相同的api接口因为部署环境不同,分为test和pre_production 打开Postman,建两个测试集,分别测试测试环境test和演练环境pre_production 下面来介绍一下Postm ...
- 20165223《Java程序设计》第八周Java学习总结
教材学习内容总结 第12章-JAVA多线程机制 要点 Java中的线程 Thread类与线程的创建 线程的常用方法 线程同步 协调同步的线程 线程联合 GUI线程 计时器线程 教材学习中的问题和解决过 ...
- Appium的图像界面浅说
appium的图形用户界面(GUI) (1)Application中各个项的含义作用: Application Path:填写你需要测试的Android APK的包地址(两种方式:1直接点击Choos ...
- Linux编译安装PHP参数说明
php各参数配置详解 --prefix=/usr/local/php //指定 php 安装目录 --with-apxs2=/usr/local/apache/bin/apxs //整合apache, ...
- ElasticSearch6.1.1集群搭建
其实早就想研究ES了,因为之前用solr,资料较少(这倒不是问题,有问题去官网读文档),貌似用的人比较少?(别打我)前几天去京东面试,我觉得有必要了解一下es,昨天晚上简单了解了官方文档,今天居然鼓捣 ...
- 类图uml
画类图或时序的软件类图astah-community-6_9_0-b4c6e9-jre-setup 先写总体架构再写流程图 即先写类图再流程图 b ^ | a a继承b 工具类是us ...
- This Gradle plugin requires a newer IDE able to request IDE model level 3. For Android Studio this means v3+
在项目的gradle.properties配置文件中加入以下这句: gradle.properties中:android.injected.build.model.only.versioned = 3