zoukankan      html  css  js  c++  java
  • Django project troubleshootings

    1. 当django project文件夹放到cgi-bin目录下面时会出现下面的错误:

    [Wed Jan 09 01:52:52.611690 2019] [core:notice] [pid 15229:tid 140466120317888] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 09 01:52:58.777013 2019] [cgi:error] [pid 15233:tid 140465976928000] [client 60.247.80.142:18849] AH01215: (8)Exec format error: exec of '/u
    sr/lib/cgi-bin/djangoTest/testdj/testdj/wsgi.py' failed: /usr/lib/cgi-bin/djangoTest/testdj/testdj/wsgi.py
    [Wed Jan 09 01:52:58.777271 2019] [cgi:error] [pid 15233:tid 140465976928000] [client 60.247.80.142:18849] End of script output before headers: wsgi.
    py

    resolution:

      把django project的文件夹移动其他不属于cgi控制的位置。

    参照:https://stackoverflow.com/questions/37993270/end-of-script-output-before-headers-wsgi-py

  • 相关阅读:
    php设计模式-适配器
    遍历Map的4种方法
    遍历数组
    遍历List的方法
    复选框选中
    单选框选中
    正向代理和反向代理
    对于Dubbo的理解
    python远程控制Linux
    python对中文的处理
  • 原文地址:https://www.cnblogs.com/lijavasy/p/10242845.html
Copyright © 2011-2022 走看看