uwsgi:无法识别的选项'--module = MyProject.wsgi:application' [英] uwsgi: unrecognized option '--module=MyProject.wsgi:application'

查看:148
本文介绍了uwsgi:无法识别的选项'--module = MyProject.wsgi:application'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了 https://docs.djangoproject中的说明.com/en/dev/howto/deployment/wsgi/uwsgi/,直到几天前我都杀死了uwsgi进程并尝试重新启动后,它才能正常工作.然后它说

I followed the instructions in https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/ and it was working fine until a few days ago, when I killed the uwsgi processes and tried to restart again. Then it said

uwsgi: unrecognized option '--module=MyProject.wsgi:application'

我一直在努力解决该问题,...检查了提交历史,并且用于启动uwsgi的脚本没有更改:

I've been banging my head trying to solve that problem, ... I've checked my commit history and the script I use to start uwsgi hasn't changed :

#!/bin/bash
# https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/
uwsgi --chdir=/home/MyProject \
    --module=MyProject.wsgi:application \
    --env DJANGO_SETTINGS_MODULE=MyProject.settings \
    --master --pidfile=/tmp/MyProject-masted.pid \
    --socket=/home/MyProject.sock \
    --processes=5 \
    --harakiri=20 \
    --limit-as=128 \
    --max-requests=5000 \
    --vacuum \
    --home=/home/MyProject/env \
    --daemonize=/var/log/uwsgi/MyProject.log

显然某些内容已经更改,但是我看不到...我没有运行任何更新,脚本没有更改... PlEaSe HeLp !!!

Obviously something must have changed but I cant see what ... I didn't run any update, script didn't change ... PlEaSe HeLp !!!

推荐答案

我最近在尝试在Unbuntu 12.04版本(1.0.3)中使用uWSGI版本时遇到了这个问题.看起来该版本有点旧.只需使用点子将其抓取即可(1.2.5).

I ran into this recently when I tried to use the version of uWSGI in the Unbuntu 12.04 repo (1.0.3). It looks likes that version is a bit old. Just use pip to grab it (1.2.5).

pip install uwsgi

这篇关于uwsgi:无法识别的选项'--module = MyProject.wsgi:application'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆