【问题标题】:UWSGI not running Django projectUWSGI 没有运行 Django 项目
【发布时间】:2016-02-05 15:21:06
【问题描述】:

我正在尝试运行此代码

uwsgi --emperor /etc/uwsgi/vassals --uid www-data --gid www-data

我正在关注this tutorial. 但我得到了以下输出。

*** Starting uWSGI 2.0.11.2 (64bit) on [Thu Nov  5 04:42:12 2015] ***
compiled with version: 4.8.4 on 04 November 2015 16:32:43
os: Linux-3.16.0-52-generic #71~14.04.1-Ubuntu SMP Fri Oct 23 17:24:53 UTC 2015
nodename: myproject
machine: x86_64
clock source: unix
detected number of CPU cores: 2
current working directory: /var/www/myproject
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
setgid() to 33
setuid() to 33
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 15305
your memory page size is 4096 bytes
detected max file descriptor number: 1024
*** starting uWSGI Emperor ***

这是我的 .ini 文件

plugins = python
chdir           = /var/www/myproject/
module          = myproject.wsgi:application
home            = /var/www/
master          = true
processes       = 10
socket          = /var/www/myproject/uwsgi.sock
chmod-socket    = 666
vacuum          = true

我的代码正在处理这个

uwsgi --ini myproject.ini

请帮我解决这个难题,谢谢。

【问题讨论】:

    标签: python uwsgi


    【解决方案1】:

    它似乎工作正常!你试过连接nginx吗?您现在可以忽略警告。

    【讨论】:

    • 完成!但没有运气。你能给我一个来自 /etc/ini 的 uwsgi.conf 的演示吗?
    • 它似乎工作正常!你试过连接nginx吗?您现在可以忽略警告。
    • 是的,我试过了。套接字文件未创建。所以 502 Bad Gateway。
    • 谢谢兄弟。问题解决了。这是基本的操作系统万神殿问题。我在云上试过。我成功了。现在我必须修复我的本地问题。再次感谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-15
    • 2012-01-20
    • 1970-01-01
    • 2012-10-28
    • 2019-11-18
    • 1970-01-01
    相关资源
    最近更新 更多