首页 文章
  • 1 votes
     answers
     views

    uwsgi python2.7无法导入任何东西

    我正在尝试在debian 6上使用uwsgi python2.7 django nginx . 我使用命令安装uwsgi: pip2.7 install uwsgi 所以它's running with python 2.7. I' m在emperor模式下使用以下命令运行uwsgi:uwsgi --emperor / etc / uwsgi / vassals / -d /var/log/uws...
  • 1 votes
     answers
     views

    Nginx - 4021#0 - 设置问题

    我正在使用Ubuntu 12.04.3 LTS的虚拟机 我正在与Uwsgi nginx做一个Django项目 我在我的hosts文件中添加了"192.168.33.50 myproject.com" 我开始使用uwsgi主管nginx进程 当我尝试访问myproject.com时,我在/var/log/nginx/error.log中收到此错误: 20...
  • 0 votes
     answers
     views

    uWSGI / nginx / Django在Amazon EC2 Micro实例上从Apache切换后表现不佳

    我刚刚将我的服务器从Apache / mod_wsgi转到了nginx / uwsgi堆栈 . 但是,与Apache相比,我看到的表现非常糟糕,尽管 server load is the same/even less during Christmas. 任何想法都是为什么,我对uWSGI / Nginx堆栈很新?这是我的配置: [uwsgi] chdir = / srv / www / poka...
  • 0 votes
     answers
     views

    使用https的Django-uWSGI-nginx

    我使用uwsgi在nginx上运行我的DJango应用程序 . 它目前正在使用这些配置: [uwsgi] socket =:8002 master = true env = DJANGO_SETTINGS_MODULE = web_server.web_server.settings pythonpath = / tmp / src / wsgi-file = /tmp/src/web_serv...
  • 4 votes
     answers
     views

    Nginx,Uwsgi,Python - 502 Bad Gateway - 上游过早关闭的连接

    我正在尝试解决相关的问题,但我没有成功 . 我'm trying to export some json to xml, and it goes smooth when using not a great amount of data (with a sample of 2000 lines there is no problem). But when I try to make the same...
  • 0 votes
     answers
     views

    Nginx,uwsgi,django,ubuntu 16问题w /静态文件

    我正在使用Nginx,uwsgi,django和Ubuntu 16.04,并在我的所有静态文件上获得404 . 当我查看nginx的error.log时,它会在实际文件位置前添加额外的/ static: 404找不到:/home/jsmith/firstproj/static_cdn/static/css/bootstrap.css 实际位置:/home/jsmith/firstproj/stat...
  • 0 votes
     answers
     views

    完成Django站点的uWSGI / Nginx设置

    几个月前,我使用本教程在Digital Ocean上的Ubuntu服务器上设置了一个django博客 注意:请原谅我的链接,但由于我的帐户缺乏积分,因此我不会发布超过2个链接 . digitalocean [dot] com / community / tutorials / how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubun...
  • 2 votes
     answers
     views

    为什么我的脚本启动UWSGI在启动时无法运行?

    我想知道你是否可以提供帮助 . 我正在运行以下版本: OS: SMP Debian 3.2.81-1 x86_64 uWSGI: uWSGI 2.0.11.2 我手动安装了uWSGI,因为我想使用特定版本 . 使用以下命令: - apt-get install build-essential psmisc python-dev libxml2 libxml2-dev python-setupto...
  • 0 votes
     answers
     views

    Django Nginx uWSGI 502 Bad Gateway总是如此

    我一直关注http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html 然后去了 http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html#running-the-django-application-with-uws...
  • 0 votes
     answers
     views

    从Dockerfile访问`docker run`参数

    我运行这样的图像: docker run <image_name> <config_file> 其中 config_file 是包含应用程序配置的JSON文件的路径 . 在Dockerfile里面,我做到了 ENTRYPOINT ["uwsgi", \ "--log-encoder", "json ...
  • 3 votes
     answers
     views

    从docker容器发送lan数据包唤醒

    我有一个运行python uwsgi应用程序的docker容器 . 应用程序发送唤醒局域网广播数据包以唤醒本地网络中的电脑 . 它没有使用docker(直接在服务器上的普通uwsgi应用程序)工作正常,但使用docker它将无法正常工作 . 我暴露了端口9 / udp并将其绑定到主机系统的端口9 . 我在这里想念的是什么?或者换句话说,如何将dock命令从docker容器发送到外部网络?
  • 13 votes
     answers
     views

    nginx.service:无法从文件/run/nginx.pid读取PID:无效的参数

    我正在通过https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04工作 . 我've completed the tut but I'得到502错误 . 我的nginx服务器块配置文件: server { listen ...
  • 1 votes
     answers
     views

    Ubuntu Nginx uwsgi socket无法正常工作

    我正在尝试使用nginx和uwsgi设置我的Django(2.0)项目,但它在运行时失败: uwsgi --socket :8001 --wsgi-file test.py 在https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html之后 它失败了,无法连接服务器,但是 uwsgi --http :8000 --w...
  • 1 votes
     answers
     views

    django与nginx uwsgi坏网关502

    我想用nginx运行django我跟着这个instructions然后进入 / etc / nginx / sites-available / cartoview_one upstream django { server unix:///root/cartoview_project/mysite.sock; # for a file socket } server { ...
  • 7 votes
     answers
     views

    Django uWSGI NGINX Bad Request 400

    在尝试使用django开发服务器部署我开发的博客时收到400错误后,我启动了一个新的测试项目(使用startproject并且什么都不做 - 只需要一点点配置) - 尽量少尽可能保持简单 . 当我执行“manage.py runserver”时,它会显示一个页面,说我看到了这个,因为我的设置中有“DEBUG = True” . 到现在为止还挺好 . 没有错误 . 但是,如果我使用uWSGI和NGI...
  • 2 votes
     answers
     views

    为什么uWSGI工作人员停止响应SIGHUP?

    Python源码: import time import os import signal import threading import datetime import uwsgi to_be_killed = {} def print_still_alive(): now = time.time() still_alive_pids = set(w['pid'] for ...
  • 0 votes
     answers
     views

    从apache uwsgi运行时,无法在python中导入我自己的.py模块

    我想创建自己的API,所以我用apache2,uwsgi,flask和python安顿下来 . 我按照这些指示here 我换了模块: libapache2-mod-wsgi - > libapache2-mod-wsgi-py3 python-dev - > python3-dev python-pip - > python3-pip 我改变了命令: s...
  • 3 votes
     answers
     views

    一段时间后,traefik 502坏网关

    问题 我正在运行traefik来在docker容器中提供python django应用程序 . 该应用程序运行没有问题通过https或http . 在一个非特定的时间(一小时后)traefik日志说“502 Bad Gateway " and my nginx and uwsgi logs dont say anything. " docker restart djangoap...
  • 0 votes
     answers
     views

    python3.6安装uwsgi错误centos

    我成功地在本地安装了uwsgi . 但我在vps上安装然后它是错误的 . 目前我不知道如何解决它 . 错误信息: *** uWSGI compiling embedded plugins *** [gcc -pthread] plugins / python / pythonplugin.o在plugins / python / pythonplugin.c中包含的文件中:1:0:Plugins...
  • 0 votes
     answers
     views

    在窗口中的cygwin64中uwsgi中的安装错误

    我将使用cygwin64安装uwsgi pip3安装uwsgi 运行后显示我错误 plugins / router_basicauth / router_basicauth.c:9:10:致命错误:crypt.h:没有这样的文件或目录#include ^ ~~~~~~~~编译终止 . 失败的构建轮uwsgi运行setup.py clean for uwsgi无法构建uwsgi plugins...
  • 1 votes
     answers
     views

    Django admin中出现“ImportError:没有名为urls的模块”

    Django:1.3.5nginx:1.2.6uwsgi:1.0.5 我的django应用程序运行在nginx和uwsgi上 . 打开管理页面时,发生500错误 . 此错误是“ImportError:没有名为urls的模块” . 运行命令“python manage.py runserver”并打开管理页面,然后没有发生500错误 . 在urls.py上评论管理员,然后错误不会发生 . 此错误仅发...
  • 0 votes
     answers
     views

    无法从文件/run/nginx.pid读取PID但网站正常工作

    当我检查Nginx的状态时 sudo service nginx status Aug 01 12:35:07 iz2ze9wve43n2nyuvmsfx5z systemd[1]: Starting The nginx HTTP and reverse proxy server... .... Aug 01 12:35:07 iz2ze9wve43n2nyuvmsfx5z systemd[1]...
  • 1 votes
     answers
     views

    Django uWSGI Nginx

    我正在关注本教程,但我遇到了问题,我得到了502 Nginx错误 . tutorial link 我检查错误日志,它说 uwsgi.log ImportError:没有名为khcards.wsgi的模块 我的uwsgi文件看起来像这样 [uwsgi] # variables projectdomain = khcardsonline.co.uk www.khcardsonline.co.uk ...
  • 0 votes
     answers
     views

    无法使用uWSGI运行Restplus Flask API

    我现在正试图用uWSGI替换Flask开发服务器,但一切都中断了 . 我找不到问题的解决方案了 . 这是代码: app.py import logging.config import settings import utils from flask import Flask, Blueprint from flask_restplus import Resource, Api from flas...
  • 10 votes
     answers
     views

    Ansible Playbook运行Shell命令

    我最近潜入了Ansible的一台服务器,发现它真的很有趣,省时省力 . 我正在运行一个Ubuntu专用服务器,并配置了许多用Python编写的Web应用程序和一些用PHP编写的Web应用程序 . 对于Python,我使用uwsgi作为HTTP网关 . 我编写了shell脚本来启动/重启几个进程,以便运行特定Web应用程序的实例 . 我每次都要做的是,连接ssh并导航到该特定应用程序并运行脚本 . ...
  • 0 votes
     answers
     views

    在uWSGI下运行Ansible Playbooks无法正常工作

    我从命令行运行Ansible Playbooks就好了,因为似乎Ansible使用正在执行的应用程序(在本例中为Python)作为调用Playbooks的命令 . 问题是当您尝试在uWSGI下运行Ansible Playbooks时,尝试运行Playbook的命令使用/ usr / bin / uwsgi . 不知怎的,Ansible正在寻找它正在运行的命令 . 有办法改变吗? 更新:我相信运行的...
  • 0 votes
     answers
     views

    使用uwsgi或gunicorn在nginx上部署django App无法正常工作

    我正在尝试使用nginx服务器在ubuntu上部署django应用程序 . 我尝试使用gunicorn和uwsgi这两种方法,但仍然没有工作 . 我经历了很多教程 . 主要问题可能是我的django应用程序不在虚拟环境中 . 它直接在我的服务器上 . 请帮我搞清楚 . Django应用程序在8000端口上独立工作 . 和ngnix也在运行 . Gunicorn和uwsgi也正确安装 . uws...
  • 1 votes
     answers
     views

    使用UWSGI的Flask:找不到Python应用程序

    我已经按照Linode guide设置了带有Flask应用程序的UWSGI,一切似乎没问题,直到我尝试将我的应用程序而不是样本应用程序,当我得到"uWSGI Error Python application not found"时 . /srv/www/xxx.com/xxx/ 中我的文件结构是: app/ __init__.py uwsgi.py __init__....
  • 0 votes
     answers
     views

    使用uwsgi和nginx运行Flask应用程序

    我正在按照数字海洋教程配置nginx uwsgi以服务烧瓶应用程序 . Digital Ocean Tuttorial link我已经为启动我的应用程序提供了服务 . 但是当我运行它时,我得到以下状态 Process: 726 ExecStart=/home/user/app/my_project/venv/bin/uwsgi --ini my_project.ini (code=exited,...
  • 1 votes
     answers
     views

    无法使用uwsgi和Docker查看我的简单烧瓶应用程序

    我是Docker的新手,并试图在我的Mac上使用uwsgi和Docker运行一个简单的Flask应用程序 . 但是,我无法在我提供的IP和端口上查看它 . 我有以下代码结构及其内容: app - app.py - Dockerfile - requirements.txt - docker-compose.yml - uwsgi.ini app.py from flask import Fla...

热门问题