【问题标题】:Install graphite with apache .4 on ubuntu 14 error在 ubuntu 14 错误上使用 apache .4 安装石墨
【发布时间】:2014-10-03 07:24:47
【问题描述】:
mod_wsgi Exception occurred processing WSGI script '/usr/share/graphite-web/graphite.wsgi'

我只将 apache-graphite.conf 复制到 /etc/apache/sites-available,为什么它会抱怨石墨.wsgi?

apache-graphite.conf 的内容:

import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'

import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()


from graphite.logger import log
log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid())
import graphite.metrics.search

【问题讨论】:

  • 你混合了 apache-graphite.conf 和 graphite.wsgi 吗?

标签: apache graphite


【解决方案1】:

graphite.wsgi 是您的 apache 网络服务器调用的 wsgi application 来回答传入的请求。

apache-graphite.conf 站点定义了一个运行 django 的 wsgi 应用程序,它将使用石墨代码处理请求。我猜它看起来更像这样:https://github.com/graphite-project/graphite-web/blob/0.9.x/examples/example-graphite-vhost.conf

graphite.wsgi 通常看起来像:https://github.com/graphite-project/graphite-web/blob/0.9.x/conf/graphite.wsgi.example

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-09
    • 1970-01-01
    • 1970-01-01
    • 2014-06-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多